def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def matchfn(self, f):
        for match in self._matchers:
            if match(f):
                return True
        return False