Fix build break

This commit is contained in:
Arun Prakash Jana 2020-09-20 00:59:27 +05:30
parent 4eddb70826
commit 880bebf891
No known key found for this signature in database
GPG Key ID: A75979F35C080412

2
buku
View File

@ -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'