summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Bruhin <git@the-compiler.org>2012-09-16 23:26:35 +0200
committerFlorian Bruhin <git@the-compiler.org>2012-09-16 23:26:35 +0200
commita18a935834864b6794f59f0f0d08649baf113645 (patch)
treeb6b88b8ff6913909db7604bed027d18ccddb74c0
parent75d317be8544e7cdaa8340f4e64379ade460bae7 (diff)
downloadxojgrep-a18a935834864b6794f59f0f0d08649baf113645.tar.gz
xojgrep-a18a935834864b6794f59f0f0d08649baf113645.zip
Strip the \n for txt files
-rw-r--r--xojgrep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xojgrep.py b/xojgrep.py
index 776933f..d2997e3 100644
--- a/xojgrep.py
+++ b/xojgrep.py
@@ -123,7 +123,7 @@ class TXTFile:
def getcontent(self):
content = []
for (ln, line) in enumerate(self.txtfile, 1):
- content.append((ln, [line]))
+ content.append((ln, [line.rstrip('\n')]))
return content