mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
Convert tabs to position-modulated run of whitespaces.
This commit is contained in:
parent
572cbf5b49
commit
ccb7a68208
@ -115,6 +115,10 @@ class CanvasImportStore():
|
|||||||
inCurColours = (inCurColours[1], inCurColours[0]); inCurCol += 1;
|
inCurColours = (inCurColours[1], inCurColours[0]); inCurCol += 1;
|
||||||
elif inChar == "\u001f":
|
elif inChar == "\u001f":
|
||||||
inCellState = self._flipCellStateBit(self._CellState.CS_UNDERLINE, inCellState); inCurCol += 1;
|
inCellState = self._flipCellStateBit(self._CellState.CS_UNDERLINE, inCellState); inCurCol += 1;
|
||||||
|
elif inChar == "\t":
|
||||||
|
for tabChar in range(8 - len(outMap[-1]) % 8):
|
||||||
|
outMap[-1].append([*inCurColours, inCellState, inChar])
|
||||||
|
inCurCol += 1
|
||||||
else:
|
else:
|
||||||
outMap[-1].append([*inCurColours, inCellState, inChar]); inCurCol += 1;
|
outMap[-1].append([*inCurColours, inCellState, inChar]); inCurCol += 1;
|
||||||
inLine, outMaxCols = inFile.readline(), max(outMaxCols, len(outMap[-1]))
|
inLine, outMaxCols = inFile.readline(), max(outMaxCols, len(outMap[-1]))
|
||||||
|
Loading…
Reference in New Issue
Block a user