(self, block, char)
Compute indent for the block.
        Basic alorightm, which knows nothing about programming languages
        May be used by child classes
Compute indent for the block.
        Basic alorightm, which knows nothing about programming languages
        May be used by child classes
Compute indent for the block . Basic alorightm which knows nothing about programming languages May be used by child classes
def computeIndent(self, block, char):
        """Compute indent for the block.
        Basic alorightm, which knows nothing about programming languages
        May be used by child classes
        """
        prevBlockText = block.previous().text()  # invalid block returns empty text
        if char == '\n' and \
                prevBlockText.strip() == '':  # continue indentation, if no text
            return self._prevBlockIndent(block)
        else:  # be smart
            return self.computeSmartIndent(block, char)
def computeIndent ( self , block , char ) : prevBlockText = block . previous ( ) . text ( ) # invalid block returns empty text if char == '\n' and prevBlockText . strip ( ) == '' : # continue indentation, if no text return self . _prevBlockIndent ( block ) else : # be smart return self . computeSmartIndent ( block , char )