commit 67178df9792f4c24160a5842ff23347b4ed3703e
Author: Richard Kimberly Heck <[email protected]>
Date: Fri Jun 16 01:21:56 2023 -0400
Fix lyx2lyx bug reported by Herbert Voss.
For some reason, files converted from really old versions have fewer
lines in reference insets than in more recent versions.
---
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 5af5872..a295e0a 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -4623,7 +4623,7 @@ def convert_starred_refs(document):
document.warning("Malformed LyX document: Can't find end of inset
at line %d" % i)
i += 1
continue
- newlineat = end - 2
+ newlineat = end - 1
document.body.insert(newlineat, "nolink \"false\"")
i = end + 1
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs