From: Juergen Spitzmueller Date: Sat, 28 Jan 2023 09:16:54 +0000 (+0100) Subject: lyx2lyx: fix convert_totalheight method X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b66a6dba43232c5a67fd152830cb0927cc9f5b10;p=features.git lyx2lyx: fix convert_totalheight method This didn't account for float values --- diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 1cbf671c27..a0609623b6 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -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])