Browse Source

Updated permuteText to not take away last line char

master
Samuel 7 years ago
parent
commit
4541c376ee
  1. 3
      permutateText/permutateText.py

3
permutateText/permutateText.py

@ -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))

Loading…
Cancel
Save