def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def serialize(self, value, display=False):
        if value is None:
            return ""
        return encode(value)