From efe06103f3335f24c754bfb78d5fcf1072c3624f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 19 Feb 2013 12:36:06 +0100 Subject: [PATCH] Add test case for bug #5312 --- src/tex2lyx/test/test-insets.lyx.lyx | 18 ++++++++++++++++-- src/tex2lyx/test/test-insets.tex | 2 ++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index b9deacb062..d0d2da944f 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -1,5 +1,5 @@ #LyX file created by tex2lyx 2.1.0dev -\lyxformat 462 +\lyxformat 463 \begin_document \begin_header \textclass article @@ -13,7 +13,7 @@ \maintain_unincluded_children false \language english \language_package none -\inputencoding latin9 +\inputencoding iso8859-15 \fontencoding T1 \font_roman default \font_sans default @@ -871,6 +871,20 @@ description "uniform resource locator" \end_inset +\end_layout + +\begin_layout Standard +An URL with strange characters: +\begin_inset Flex Flex:URL +status collapsed + +\begin_layout Plain Layout +http://www.lyx.org/percent%dollar$ +\end_layout + +\end_inset + + \end_layout \begin_layout Standard diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 11385dd0d3..28d4301125 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -174,6 +174,8 @@ between~\verbatiminput{foo} or~\verbatiminput*{foo}. An URL: \url{http://www.lyx.org} \nomenclature{URL2}{uniform resource locator} +An URL with strange characters: \url{http://www.lyx.org/percent%dollar$} + link:\href{http://www.test.test}{www.test.test} link2:\href{http://www.test.test}{http://www.test.test}