Update line_utils.py

This commit is contained in:
chrys87 2016-10-28 14:27:23 +02:00 committed by GitHub
parent c395e72d50
commit 4ebd476c63

View File

@ -39,3 +39,9 @@ def getNextLine(currX,currY, currText):
x = 0
currLine = wrappedLines[y]
return x, y, currLine
def insertNewlines(string, every=64):
return b'\n'.join(string[i:i+every] for i in range(0, len(string), every))
def splitAtrrLines(string, every=64):
return list(string[i:i+every] for i in range(0, len(string), every))