From 0735ac84e2596dd95c212eabe7d75bf46e7aa186 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. (cherry picked from commit c4bed8dbe802303c9249114d025119ca80b42936) --- src/insets/InsetListings.cpp | 3 +++ status.20x | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/insets/InsetListings.cpp b/src/insets/InsetListings.cpp index 6156f8883f..19a8105dbf 100644 --- a/src/insets/InsetListings.cpp +++ b/src/insets/InsetListings.cpp @@ -283,6 +283,9 @@ docstring InsetListings::xhtml(XHTMLStream & os, OutputParams const & rp) const out << html::StartTag("pre"); 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("pre"); diff --git a/status.20x b/status.20x index 4e16788d60..b204da427a 100644 --- a/status.20x +++ b/status.20x @@ -107,6 +107,9 @@ What's new - Properly output alias for formatted chapter references, so prettyref documents work when converted tor refstyle. +- Do not convert --- and -- to entities when outputting listings to + XHTML (bug 8561). + * USER INTERFACE -- 2.39.5