From fa449e976906edb9510639f2ca7bf491a2e07b46 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Thu, 8 Dec 2022 11:09:48 -0500 Subject: [PATCH] Simplify conversion routine, and remove warning --- lib/lyx2lyx/lyx_2_4.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py index 72fda1e0b7..b6b229a7eb 100644 --- a/lib/lyx2lyx/lyx_2_4.py +++ b/lib/lyx2lyx/lyx_2_4.py @@ -4637,11 +4637,8 @@ def convert_starred_refs(document): continue noprefixline = document.body[i + 5] document.warning(noprefixline) - if not noprefixline.startswith("noprefix"): - document.warning("Malformed LyX document: noprefix line not found where it should be.") - else: - newlineat = i + 6 - document.body.insert(newlineat, "nolink \"false\"") + newlineat = end - 2 + document.body.insert(newlineat, "nolink \"false\"") i = end + 1 -- 2.39.5