From: Richard Kimberly Heck Date: Thu, 8 Dec 2022 16:09:48 +0000 (-0500) Subject: Simplify conversion routine, and remove warning X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fa449e976906edb9510639f2ca7bf491a2e07b46;p=features.git Simplify conversion routine, and remove warning --- 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