]> git.lyx.org Git - features.git/commitdiff
Don't convert --- and -- to entities in XHTML listings output.
authorRichard Heck <rgheck@lyx.org>
Thu, 21 Feb 2013 23:10:42 +0000 (18:10 -0500)
committerRichard Heck <rgheck@lyx.org>
Thu, 21 Feb 2013 23:14:06 +0000 (18:14 -0500)
Fixes bug #8561.
(cherry picked from commit c4bed8dbe802303c9249114d025119ca80b42936)

src/insets/InsetListings.cpp
status.20x

index 6156f8883fd696f390146d34b821b7c9df9b0240..19a8105dbf11cd32fc74f7663baebc43a53f7091 100644 (file)
@@ -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");
 
index 4e16788d60ecb0d3ecfacef226230aa81be3d678..b204da427a1a0c4b1b49743e991f52e4978d5c7a 100644 (file)
@@ -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