def fix_e131(self, result):
        """Fix indentation undistinguish from the next logical line."""
        num_indent_spaces = int(result['info'].split()[1])
        line_index = result['line'] - 1
        target = self.source[line_index]

        spaces_to_add = num_indent_spaces - len(_get_indentation(target))

        if spaces_to_add >= 0:
            self.source[line_index] = (' ' * spaces_to_add +
                                       self.source[line_index])
        else:
            offset = abs(spaces_to_add)
            self.source[line_index] = self.source[line_index][offset:]
def fix_e131 ( self , result ) : num_indent_spaces = int ( result [ 'info' ] . split ( ) [ 1 ] ) line_index = result [ 'line' ] - 1 target = self . source [ line_index ] spaces_to_add = num_indent_spaces - len ( _get_indentation ( target ) ) if spaces_to_add >= 0 : self . source [ line_index ] = ( ' ' * spaces_to_add + self . source [ line_index ] ) else : offset = abs ( spaces_to_add ) self . source [ line_index ] = self . source [ line_index ] [ offset : ]
Fix indentation undistinguish from the next logical line.