def append_token_line_indentation(self):
    if self.just_added_newline():
        line = self.output_lines[(- 1)]
        if (self.opts.keep_array_indentation and self.is_array(self.flags.mode) and self.input_wanted_newline):
            line.text.append('')
            for item in self.whitespace_before_token:
                line.text.append(item)
        else:
            if (self.preindent_string != ''):
                line.text.append(self.preindent_string)
            level = self.flags.indentation_level
            self.append_indent_string(level)
def append_token_line_indentation(self):
    if self.just_added_newline():
        line = self.output_lines[(- 1)]
        if (self.opts.keep_array_indentation and self.is_array(self.flags.mode) and self.input_wanted_newline):
            line.text.append()
            for item in self.whitespace_before_token:
                line.text.append(item)
        else:
            if (self.preindent_string != ):
                line.text.append(self.preindent_string)
            level = self.flags.indentation_level
            self.append_indent_string(level)