Update line_utils.py
This commit is contained in:
parent
c395e72d50
commit
4ebd476c63
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user