Fix: not exporting content if there is no title level 2
This commit is contained in:
parent
bb3aed41dc
commit
40e78176fb
1 changed files with 2 additions and 0 deletions
|
@ -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]))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue