aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2019-08-26 17:24:45 +0200
committerMatěj Cepl <mcepl@cepl.eu>2019-08-26 17:24:45 +0200
commit2e1b8a9302f01222a70ab43faacdd4c4f4532731 (patch)
treef43b5e26aea69c846713dc356bdb52f29c48a159
parent68e868296b9642a5aa2b98dccf8beecbc2263fbf (diff)
downloadepubgrep-2e1b8a9302f01222a70ab43faacdd4c4f4532731.tar.gz
Don't combine print() and '\n'
-rwxr-xr-xepubgrep.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/epubgrep.py b/epubgrep.py
index 9118787..74a7c8a 100755
--- a/epubgrep.py
+++ b/epubgrep.py
@@ -74,7 +74,7 @@ def grep_book(filename: str, pattern: str, flags: int, counting: bool=False, col
found_line = decoded_line.replace(
res.group(1),
"\033[31;1m" + res.group(1) + "\033[31;0m")
- print('{}\n'.format(found_line))
+ print('{}'.format(found_line))
else:
print(decoded_line)