[LyX/master] Amend 4966da68
Richard Kimberly Heck
rikiheck at lyx.org
Mon Dec 5 18:53:11 UTC 2022
commit bbfff0e60fc61bf63e03e7360ca5b4abead4287b
Author: Richard Kimberly Heck <rikiheck at lyx.org>
Date: Mon Dec 5 14:48:48 2022 -0500
Amend 4966da68
---
lib/lyx2lyx/lyx_2_4.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
index 22acfe4..4196983 100644
--- a/lib/lyx2lyx/lyx_2_4.py
+++ b/lib/lyx2lyx/lyx_2_4.py
@@ -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
More information about the lyx-cvs
mailing list