def indentBlock(block):
            cursor = cursorAtSpaceEnd(block)
            cursor.insertText(' ' if withSpace else self.text())
def chunkstring(s, n):
    return [ s[i:i+n] for i in xrange(0, len(s), n) ]