]> git.lyx.org Git - features.git/commitdiff
Amend 4966da68
authorRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 5 Dec 2022 19:48:48 +0000 (14:48 -0500)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Mon, 5 Dec 2022 19:48:48 +0000 (14:48 -0500)
lib/lyx2lyx/lyx_2_4.py

index 22acfe441718062ff00f6430a66984a1c4701ef7..4196983baaa870984d163bcbc5f897e5bad1a207 100644 (file)
@@ -4637,11 +4637,10 @@ def convert_starred_refs(document):
         noprefixline = document.body[i + 5]
         document.warning(noprefixline)
         if not noprefixline.startswith("noprefix"):
-            document.warning("Malformed LyX document: No noprefix line. We will do the best we can.")
-            newlineat = end - 2
+            document.warning("Malformed LyX document: noprefix line not found where it should be.")
         else:
             newlineat = i + 6
-        document.body.insert(newlineat, "nolink \"false\"")
+            document.body.insert(newlineat, "nolink \"false\"")
         i = end + 1