Fix up tests and related issues

Upgrade poetry if already installed
Get rid of test function that was causing windows problems
This commit is contained in:
Jonathan Wren 2020-02-29 14:44:42 -08:00
parent 9e5d160bbd
commit 302d353c4d
5 changed files with 13 additions and 78 deletions

View file

@ -226,13 +226,9 @@ def highlight_tags_with_background_color(entry, text, color, is_title=False):
if config["highlight"]: # highlight tags
if entry.journal.search_tags:
text_fragments = []
for tag in entry.search_tags:
for tag in entry.journal.search_tags:
text_fragments.extend(
re.split(
re.compile(re.escape(tag), re.IGNORECASE),
text,
flags=re.UNICODE,
)
re.split(re.compile(re.escape(tag), re.IGNORECASE), text)
)
else:
text_fragments = re.split(entry.tag_regex(config["tagsymbols"]), text)