mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-06-29 14:06:14 +02:00
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:
parent
9e5d160bbd
commit
302d353c4d
5 changed files with 13 additions and 78 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue