Updated permuteText to not take away last line char

This commit is contained in:
Samuel
2018-05-15 16:44:44 +08:00
parent c07d9c5703
commit 4541c376ee

View File

@@ -33,7 +33,10 @@ else:
currRead=fileHandles[operator].readline()
if currRead != "":
currState[operator]=currRead[:-1]
if currRead[-1:]=="\n":
currState[operator]=currRead[:-1]
else:
currState[operator]=currRead
if operator==len(filenames)-1:
print(showState(currState))