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