diff options
author | Richard Boß <richboss@gmail.de> | 2016-10-25 21:09:45 +0200 |
---|---|---|
committer | Richard Boß <richboss@gmail.de> | 2016-10-25 21:09:45 +0200 |
commit | 811e8fe58ad5038bddbdac96c0c3cde4e4f7d5e3 (patch) | |
tree | 96147cb618a22ea8828feee4d0ba996ce0709d18 /ranger | |
parent | 041856327c0d9b1fe3f26c5447995fda477c657f (diff) | |
download | ranger-811e8fe58ad5038bddbdac96c0c3cde4e4f7d5e3.tar.gz |
fix issue #698: replace Windows line endings with Unix line endings
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/gui/widgets/pager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/gui/widgets/pager.py b/ranger/gui/widgets/pager.py index 58b791cd..0c81079b 100644 --- a/ranger/gui/widgets/pager.py +++ b/ranger/gui/widgets/pager.py @@ -231,7 +231,7 @@ class Pager(Widget): line = ansi.char_slice(line, startx, self.wid) + ansi.reset else: line = line[startx:self.wid + startx] - yield line.rstrip() + yield line.rstrip().replace('\r\n', '\n') except IndexError: raise StopIteration i += 1 |