Updated permuteText to not take away last line char
This commit is contained in:
@@ -33,7 +33,10 @@ else:
|
|||||||
currRead=fileHandles[operator].readline()
|
currRead=fileHandles[operator].readline()
|
||||||
|
|
||||||
if currRead != "":
|
if currRead != "":
|
||||||
|
if currRead[-1:]=="\n":
|
||||||
currState[operator]=currRead[:-1]
|
currState[operator]=currRead[:-1]
|
||||||
|
else:
|
||||||
|
currState[operator]=currRead
|
||||||
|
|
||||||
if operator==len(filenames)-1:
|
if operator==len(filenames)-1:
|
||||||
print(showState(currState))
|
print(showState(currState))
|
||||||
|
|||||||
Reference in New Issue
Block a user