From: Richard Heck Date: Sat, 23 Mar 2013 14:05:56 +0000 (-0400) Subject: Fix bug #8604: Forgot not to escape the caption string in listings. X-Git-Tag: 2.0.6~56 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=5d792ae0fdf691fb4c9f6d52d425fdfa6ae5ea14;p=features.git Fix bug #8604: Forgot not to escape the caption string in listings. (cherry picked from commit 7dac3a2715e9e8e5a9566d3816362a421d58d4a7) --- diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 19a8105dbf..f45bde4d4b 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -277,6 +277,7 @@ docstring InsetListings::xhtml(XHTMLStream & os, OutputParams const & rp) const docstring caption = getCaptionHTML(rp); if (!caption.empty()) out << html::StartTag("div", "class='float-caption'") + << XHTMLStream::ESCAPE_NONE << caption << html::EndTag("div"); } diff --git a/status.20x b/status.20x index 72b544289b..5c9800538c 100644 --- a/status.20x +++ b/status.20x @@ -121,6 +121,8 @@ What's new - Translate "elsewhere" when outputting XHTML (bug 8587). +- Fix problem with XHTML output of captions with listings (bug 8604). + * USER INTERFACE