Headers were being repeated.... FIXED
This commit is contained in:
parent
f73b11d153
commit
6f00db705e
2
main.py
2
main.py
@ -120,7 +120,7 @@ class MyHTMLParser(HTMLParser):
|
|||||||
if line.strip().startswith('# '):
|
if line.strip().startswith('# '):
|
||||||
if header == line.strip():
|
if header == line.strip():
|
||||||
continue
|
continue
|
||||||
header = line
|
header = line.strip()
|
||||||
|
|
||||||
# Add a `\n` if line is a heading.
|
# Add a `\n` if line is a heading.
|
||||||
if line.startswith('#'):
|
if line.startswith('#'):
|
||||||
|
Loading…
Reference in New Issue
Block a user