mirror of
https://github.com/jrnl-org/jrnl.git
synced 2025-05-20 13:08:31 +02:00
And now the space just ends up before the tag instead of after it
This commit is contained in:
parent
8d0aa98200
commit
09c0cccad2
1 changed files with 6 additions and 6 deletions
|
@ -231,8 +231,8 @@ def highlight_tags_with_background_color(entry, text, color, bold=False):
|
||||||
:param fragments: List of strings representing parts of entry (tag or word).
|
:param fragments: List of strings representing parts of entry (tag or word).
|
||||||
:rtype: List of tuples
|
:rtype: List of tuples
|
||||||
:returns [(colorized_str, original_str)]"""
|
:returns [(colorized_str, original_str)]"""
|
||||||
for fragment in fragments:
|
for part in fragments:
|
||||||
for part in fragment.lstrip(" ").lstrip("\t").split(" "):
|
# part = part.rstrip()
|
||||||
if part and part[0] not in config['tagsymbols']:
|
if part and part[0] not in config['tagsymbols']:
|
||||||
yield (colorize(part, color, bold), part)
|
yield (colorize(part, color, bold), part)
|
||||||
elif part:
|
elif part:
|
||||||
|
|
Loading…
Add table
Reference in a new issue