From 6f00db705eb7846e243c08f21cb74e1150cd0a08 Mon Sep 17 00:00:00 2001 From: boose_magoose Date: Sun, 3 Dec 2023 20:23:25 -0500 Subject: [PATCH] Headers were being repeated.... FIXED --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index 5543c7e..36b3028 100644 --- a/main.py +++ b/main.py @@ -120,7 +120,7 @@ class MyHTMLParser(HTMLParser): if line.strip().startswith('# '): if header == line.strip(): continue - header = line + header = line.strip() # Add a `\n` if line is a heading. if line.startswith('#'):