Exclude "\n" character from fragment highlight.

This commit is contained in:
nervuri 2021-12-26 18:37:33 +00:00
parent c186417856
commit 65160e927a
1 changed files with 1 additions and 1 deletions

View File

@ -972,7 +972,7 @@ you'll be able to transparently follow links to Gopherspace!""")
else:
# Highlight the entire line.
rendered_line = "\x1b[7m" + fragment_match_prefix\
+ rendered_line + "\x1b[0m"
+ rendered_line.rstrip("\n") + "\x1b[0m" + "\n"
# Write to file.
if rendered_line: