commit b66a6dba43232c5a67fd152830cb0927cc9f5b10
Author: Juergen Spitzmueller <[email protected]>
Date:   Sat Jan 28 10:16:54 2023 +0100

    lyx2lyx: fix convert_totalheight method
    
    This didn't account for float values
---
 lib/lyx2lyx/lyx_2_4.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index 1cbf671..a060962 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])
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to