[LyX/master] consider numbers in insets parameters for RTL numeral runs in lyx2lyx
Udi Fogiel <[email protected]> Sun, 19 Jul 2026 01:21:39 +0000
| Newsgroups | gmane.editors.lyx.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 13ca500ec78fb1a5c1c8cf533ad13c2addde7a3e Author: Udi Fogiel <[email protected]> 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 -- lyx-cvs mailing list [email protected] https://lists.lyx.org/mailman/listinfo/lyx-cvs