diff --git a/permutateText/permutateText.py b/permutateText/permutateText.py index 79d3827..8bc27c3 100755 --- a/permutateText/permutateText.py +++ b/permutateText/permutateText.py @@ -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))