diff options
author | Florian Bruhin <git@the-compiler.org> | 2012-09-16 23:26:35 +0200 |
---|---|---|
committer | Florian Bruhin <git@the-compiler.org> | 2012-09-16 23:26:35 +0200 |
commit | a18a935834864b6794f59f0f0d08649baf113645 (patch) | |
tree | b6b88b8ff6913909db7604bed027d18ccddb74c0 | |
parent | 75d317be8544e7cdaa8340f4e64379ade460bae7 (diff) | |
download | xojgrep-a18a935834864b6794f59f0f0d08649baf113645.tar.gz xojgrep-a18a935834864b6794f59f0f0d08649baf113645.zip |
Strip the \n for txt files
-rw-r--r-- | xojgrep.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |