glossary: fixed printing of empty description

This commit is contained in:
juk0de 2024-02-26 15:55:10 +01:00
parent 284dd13201
commit 9bbf67af67

View File

@ -153,7 +153,7 @@ class Glossary:
"""
output: list[str] = []
output.append(f'{self.name} (ID: {self.ID}):')
if self.desc:
if self.desc and self.desc != 'None':
output.append('- ' + self.desc)
output.append(f'- Languages: {self.source_lang} -> {self.target_lang}')
if with_entries: