unify lineends

This commit is contained in:
chrys
2018-05-27 22:41:03 +02:00
parent ceed614b9a
commit f56e57dfe2
2 changed files with 27 additions and 8 deletions

View File

@ -195,7 +195,8 @@ class driver(screenDriver):
def autoDecodeVCSA(self, allData, rows, cols):
allText = ''
allAttrib = []
i = 0
i = 0
print(rows)
for y in range(rows):
lineText = ''
lineAttrib = []
@ -254,7 +255,9 @@ class driver(screenDriver):
'default', # fontsize
'default') # fontfamily
lineAttrib.append(charAttrib)
allText += lineText + '\n'
allText += lineText
if y + 1 < rows:
allText += '\n'
allAttrib.append(lineAttrib)
return str(allText), allAttrib