about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorRichard Boß <richboss@gmail.de>2016-10-25 21:09:45 +0200
committerRichard Boß <richboss@gmail.de>2016-10-25 21:09:45 +0200
commit811e8fe58ad5038bddbdac96c0c3cde4e4f7d5e3 (patch)
tree96147cb618a22ea8828feee4d0ba996ce0709d18
parent041856327c0d9b1fe3f26c5447995fda477c657f (diff)
downloadranger-811e8fe58ad5038bddbdac96c0c3cde4e4f7d5e3.tar.gz
fix issue #698: replace Windows line endings with Unix line endings
-rw-r--r--ranger/gui/widgets/pager.py2
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