mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix parsing of verbatim options (bug #9113)
Parser::verbatimOption() did swallow backslashes previously. The similar code in Parser::verbatim_item() was already correct.
This commit is contained in:
parent
151abe293e
commit
7aab315c81
@ -704,7 +704,7 @@ string Parser::verbatimOption()
|
||||
putback();
|
||||
res += '{' + verbatim_item() + '}';
|
||||
} else
|
||||
res += t.cs();
|
||||
res += t.asInput();
|
||||
}
|
||||
}
|
||||
return res;
|
||||
|
@ -707,6 +707,28 @@ key "gur+04"
|
||||
|
||||
\begin_layout Bibliography
|
||||
|
||||
\begin_inset CommandInset bibitem
|
||||
LatexCommand bibitem
|
||||
label "Möstl et~al.(2010)"
|
||||
key "Mostl2010"
|
||||
|
||||
\end_inset
|
||||
|
||||
Gürkan, M.
|
||||
\begin_inset space ~
|
||||
|
||||
\end_inset
|
||||
|
||||
A., Freitag, M., & Rasio, F.
|
||||
\begin_inset space ~
|
||||
|
||||
\end_inset
|
||||
|
||||
A. 2004, ApJ, 604, 632
|
||||
\end_layout
|
||||
|
||||
\begin_layout Bibliography
|
||||
|
||||
\begin_inset CommandInset bibitem
|
||||
LatexCommand bibitem
|
||||
label "{{Gürkan et~al.}(2004)}"
|
||||
|
@ -141,6 +141,8 @@ From bug 7306:
|
||||
\citet{gur+04} have demonstrated that authors should not have umlauts
|
||||
in their names. It's OK to use them in the man\"{u}script, though.
|
||||
\begin{thebibliography}{References}
|
||||
\bibitem[M\"{o}stl et~al.(2010)]{Mostl2010} Gürkan, M.~A., Freitag,
|
||||
M., \& Rasio, F.~A. 2004, ApJ, 604, 632
|
||||
\bibitem[{{G\"{u}rkan et~al.}(2004)}]{gur+04} Gürkan, M.~A., Freitag,
|
||||
M., \& Rasio, F.~A. 2004, ApJ, 604, 632\end{thebibliography}
|
||||
|
||||
|
@ -190,6 +190,8 @@ What's new
|
||||
|
||||
- Parse post command argument insets (bug 8473).
|
||||
|
||||
- Parse parsing of verbatim options containing commands (bug 9113).
|
||||
|
||||
|
||||
|
||||
* ADVANCED FIND AND REPLACE
|
||||
|
Loading…
Reference in New Issue
Block a user