'Return line indentation (character number)'

def get_block_indentation(self, block_nb):

    text = to_text_string(self.document().findBlockByNumber(block_nb).text())
    text = text.replace(' DCTB ', ('    ' * self.tab_stop_width_spaces))
    return (len(text) - len(text.lstrip()))
