def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def getLenp3(self):
        p1 = self.p1
        ret = p1.distance(self.p2)
        return ret