Headers were being repeated.... FIXED

This commit is contained in:
boose_magoose 2023-12-03 20:23:25 -05:00
parent f73b11d153
commit 6f00db705e

View File

@ -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('#'):