Am Dienstag, dem 14.07.2026 um 17:45 +0000 schrieb Udi Fogiel:
> commit b7f942e27d415c6afe4f7fba58cfc7e44652b0b1
> Author: Udi Fogiel <[email protected]>
> Date:   Tue Jul 14 19:12:42 2026 +0300
> 
>     remove \numeric font property (file foramt change)

Udi,

Whenever I edit lyx_2_6.py it gets scrambled afterwards due to the
U+2028 and U+2029 characters that have been inserted literally.

Coould you please check if the attached change still does what it
should?

-- 
Jürgen
diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index d58e907d32..93f336ee87 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -1017,13 +1017,13 @@ def revert_numeric(document):
                 if first_digit > 0:
                     sign_pos = start - 1
                     sign_at_word_start = (
-                        merged[sign_pos - 1] in " 

" if sign_pos > 0
+                        merged[sign_pos - 1] in " \u2028\u2029" if sign_pos > 0
                         else at_word_start)
                     if merged[sign_pos] in "+-" and sign_at_word_start:
                         start = sign_pos
                 matches.append((start, m.end()))
 
-        at_word_start = merged[-1] in " 

" if merged else at_word_start
+        at_word_start = merged[-1] in " \u2028\u2029" if merged else at_word_start
         if not matches:
             i = j + 1
             continue
-- 
lyx-devel mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to