mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-07-07 00:36:13 +02:00
fix up tests and related issues
This commit is contained in:
parent
47e0305aa0
commit
4d768ae433
4 changed files with 9 additions and 63 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