From c4bed8dbe802303c9249114d025119ca80b42936 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Thu, 21 Feb 2013 18:10:42 -0500 Subject: [PATCH] Don't convert --- and -- to entities in XHTML listings output. Fixes bug #8561. --- src/insets/InsetListings.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 4baaff0d47..a4a73ffc6e 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -290,6 +290,9 @@ docstring InsetListings::xhtml(XHTMLStream & os, OutputParams const & rp) const out << html::StartTag(tag, attr); OutputParams newrp = rp; newrp.html_disable_captions = true; + // We don't want to convert dashes here. That's the only conversion we + // do for XHTML, so this is safe. + newrp.pass_thru = true; docstring def = InsetText::insetAsXHTML(out, newrp, InsetText::JustText); out << html::EndTag(tag); -- 2.39.2