Fix build break
This commit is contained in:
parent
4eddb70826
commit
880bebf891
2
buku
2
buku
@ -2822,7 +2822,7 @@ def convert_tags_to_org_mode_tags(tags: str) -> str:
|
||||
buku_tags = tags.split(DELIM)[1:-1]
|
||||
buku_tags = [re.sub(r'[^a-zA-Z0-9_@]', ' ', tag) for tag in buku_tags]
|
||||
buku_tags = [re.sub(r'\s+', ' ', tag) for tag in buku_tags]
|
||||
buku_tags = list(sorted(set([x.replace(' ', '_') for x in buku_tags]), reverse=False))
|
||||
buku_tags = list(sorted({[x.replace(' ', '_') for x in buku_tags]}, reverse=False))
|
||||
if buku_tags:
|
||||
return ' :{}:\n'.format(':'.join(buku_tags))
|
||||
return '\n'
|
||||
|
Loading…
Reference in New Issue
Block a user