def cursorAtSpaceEnd(block):
            cursor = QTextCursor(block)
            cursor.setPosition(block.position() + len(blockIndentation(block)))
            return cursor
def main(args):
    '''Populates an html template using JSON-formatted output from the
    Linux 'du' utility and prints the result'''
    html = '''