[LyX/master] Simplify conversion routine, and remove warning
Scott Kostyshak
skostysh at lyx.org
Thu Dec 8 16:56:30 UTC 2022
On Thu, Dec 08, 2022 at 04:14:00PM +0100, Richard Kimberly Heck wrote:
> commit fa449e976906edb9510639f2ca7bf491a2e07b46
> Author: Richard Kimberly Heck <rikiheck at lyx.org>
> Date: Thu Dec 8 11:09:48 2022 -0500
>
> Simplify conversion routine, and remove warning
> ---
> lib/lyx2lyx/lyx_2_4.py | 7 ++-----
> 1 files changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/lib/lyx2lyx/lyx_2_4.py b/lib/lyx2lyx/lyx_2_4.py
> index 72fda1e..b6b229a 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
Note there is still a warning, "document.warning(noprefixline)". Is that
supposed to still be there?
Scott
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20221208/4445bec9/attachment.asc>
More information about the lyx-devel
mailing list