Fix: not exporting content if there is no title level 2

This commit is contained in:
Sekun 2024-10-04 22:33:29 +02:00
parent bb3aed41dc
commit 40e78176fb

View file

@ -62,6 +62,8 @@ for idx, (start, end) in enumerate(splitn[:], start=1):
if splitn: if splitn:
d = "".join(subcontent[: splitn[0]]) d = "".join(subcontent[: splitn[0]])
print(d, file=f) print(d, file=f)
else:
print("".join(subcontent), file=f)
splitn = list(zip(splitn[:], splitn[1:] + [None])) splitn = list(zip(splitn[:], splitn[1:] + [None]))