[LyX/master] consider numbers in insets parameters for RTL numeral runs in lyx2lyx
Udi Fogiel
ufogiel at lyx.org
Sun Jul 19 01:21:39 UTC 2026
commit 13ca500ec78fb1a5c1c8cf533ad13c2addde7a3e
Author: Udi Fogiel <ufogiel at lyx.org>
Date: Sun Jul 19 04:20:32 2026 +0300
consider numbers in insets parameters for RTL numeral runs in lyx2lyx
ammends b7f942e27d415c6afe4f7fba58cfc7e44652b0b1
---
lib/lyx2lyx/lyx_2_6.py | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/lib/lyx2lyx/lyx_2_6.py b/lib/lyx2lyx/lyx_2_6.py
index 386070cf9f..c8e49f79f0 100644
--- a/lib/lyx2lyx/lyx_2_6.py
+++ b/lib/lyx2lyx/lyx_2_6.py
@@ -991,6 +991,12 @@ def revert_numeric(document):
at_word_start = False
i += 1
continue
+ # Skip inset parameter lines (e.g. CommandInset's reference/name/key), not real text.
+ inset = get_containing_inset(document.body, i)
+ if inset and find_token(document.body, "\\begin_layout", inset[1], i) == -1:
+ at_word_start = False
+ i += 1
+ continue
# Merge consecutive plain-content lines: a bare newline
# between them is just a soft line-wrap, not a boundary.
j = i
More information about the lyx-cvs
mailing list