]> git.lyx.org Git - features.git/commitdiff
lyx2lyx: fix convert_totalheight method
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 28 Jan 2023 09:16:54 +0000 (10:16 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 28 Jan 2023 09:16:54 +0000 (10:16 +0100)
This didn't account for float values

lib/lyx2lyx/lyx_2_4.py

index 1cbf671c273897a6a2825c4c64ec5ac85a7619f5..a0609623b6196e731d546e2ce45d5a1af0c319fc 100644 (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])