lyx2lyx: fix convert_totalheight method

This didn't account for float values
This commit is contained in:
Juergen Spitzmueller 2023-01-28 10:16:54 +01:00
parent 07150cd928
commit b66a6dba43

View File

@ -3583,7 +3583,7 @@ def convert_totalheight(document):
else:
special = ""
rx = re.compile(r'(\s*height\s*)(\d+)(\S+)$')
rx = re.compile(r'(\s*height\s*)(\d+\.?\d*)(\S+)$')
kk = find_re(document.body, rx, i, j)
if kk != -1:
m = rx.match(document.body[kk])