From 5318de9f1372d9810bbadc1bb64ec50c5fdef7c3 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Sun, 13 Apr 2025 03:40:29 +0300 Subject: [PATCH] Refactor debug JSON output --- post_parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/post_parser.py b/post_parser.py index f0b9e19..ed5f95b 100644 --- a/post_parser.py +++ b/post_parser.py @@ -397,9 +397,9 @@ class PostParser: # Add raw JSON debug output if debug is enabled if debug: - debug_json = json.dumps(message, indent=2, ensure_ascii=False, default=str) - debug_json = debug_json.replace('\\n', '
').replace('\\"', '"') - html_content.append(f'
{debug_json}
') + #debug_json = json.dumps(message, indent=2, ensure_ascii=False, default=str) + #debug_json = debug_json.replace('\\n', '
').replace('\\"', '"') + html_content.append(f'
{str(message)}
') html_content = '\n'.join(html_content) return html_content