From a08c693f9007ca624358ac68ccd4f0be6d5dc0df Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Tue, 25 Sep 2012 22:25:55 +0200 Subject: [PATCH] Add test for Parser::getFullArg() It shows that the special handling of a single backslash in the argument (whcih is supposed to fix bug #4468) does not work. --- src/tex2lyx/test/test-insets.lyx.lyx | 13 +++++++++++++ src/tex2lyx/test/test-insets.tex | 2 ++ 2 files changed, 15 insertions(+) diff --git a/src/tex2lyx/test/test-insets.lyx.lyx b/src/tex2lyx/test/test-insets.lyx.lyx index 755e592e1b..a854dacbac 100644 --- a/src/tex2lyx/test/test-insets.lyx.lyx +++ b/src/tex2lyx/test/test-insets.lyx.lyx @@ -955,6 +955,19 @@ target "ftp://www.test.test" \end_inset +\end_layout + +\begin_layout Standard + +parser test (stupid, but valid): +\begin_inset CommandInset href +LatexCommand href +name "}" +target "http://www.test.test" + +\end_inset + + \end_layout \begin_layout Section diff --git a/src/tex2lyx/test/test-insets.tex b/src/tex2lyx/test/test-insets.tex index 222e41c4d2..16354ba807 100644 --- a/src/tex2lyx/test/test-insets.tex +++ b/src/tex2lyx/test/test-insets.tex @@ -158,6 +158,8 @@ ftp:\href{ftp://www.test.test}{ftp://www.test.test} ftp2:\href{ftp://www.test.test}{www.test.test} +parser test (stupid, but valid):\href{http://www.test.test}{\}} + \section{Lists\index{Lists}}