From b66a6dba43232c5a67fd152830cb0927cc9f5b10 Mon Sep 17 00:00:00 2001 From: Juergen Spitzmueller Date: Sat, 28 Jan 2023 10:16:54 +0100 Subject: [PATCH] lyx2lyx: fix convert_totalheight method This didn't account for float values --- lib/lyx2lyx/lyx_2_4.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]) -- 2.39.5