Fix totalheight reversion routine if there was no totalheight set

This commit is contained in:
Juergen Spitzmueller 2019-08-28 07:27:28 +02:00
parent bb1f81502c
commit 44bfdbd5b2

View File

@ -3523,7 +3523,11 @@ def revert_totalheight(document):
else:
del document.body[kk]
elif oldheight != "":
if special != "":
document.body[k] = "\tspecial " + special
document.body.insert(k, "\theight " + oldheight)
else:
document.body[k] = "\theight " + oldheight
i = j + 1