def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def close(figure):
        """!
        @brief Closes figure object that was used or allocated by the visualizer.