diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-08-26 17:24:45 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-08-26 17:24:45 +0200 |
commit | 2e1b8a9302f01222a70ab43faacdd4c4f4532731 (patch) | |
tree | f43b5e26aea69c846713dc356bdb52f29c48a159 | |
parent | 68e868296b9642a5aa2b98dccf8beecbc2263fbf (diff) | |
download | epubgrep-2e1b8a9302f01222a70ab43faacdd4c4f4532731.tar.gz |
Don't combine print() and '\n'
-rwxr-xr-x | epubgrep.py | 2 |
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) |