diff --git a/post_parser.py b/post_parser.py index 312a75c..68ff6b0 100644 --- a/post_parser.py +++ b/post_parser.py @@ -447,16 +447,16 @@ class PostParser: return html_data def _format_flags(self, flags_list: list) -> str: - if not Config['show_post_flags']: - return '' + if not Config['show_post_flags']: return '' + return_html = "" if flags_list: flags_html = ['
') - return ' '.join(flags_html) - return '' + return_html = ' '.join(flags_html) + + return return_html def process_message(self, message: Message) -> Dict[Any, Any]: result = {