]> git.lyx.org Git - features.git/commitdiff
Fix lyx2lyx bug reported by Herbert Voss.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 16 Jun 2023 05:21:56 +0000 (01:21 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Fri, 16 Jun 2023 05:22:52 +0000 (01:22 -0400)
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

index 5af5872b23d355c5685604daf5a4b395eb6c2ac5..a295e0a4b82d15505b0233ff8a37dd26c51c37cb 100644 (file)
@@ -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