]> 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:12:53 +0000 (18:12 -0500)
Fixes bug #8561.

src/insets/InsetListings.cpp

index 4baaff0d470cf4e8c28c4785ace2513f036e698c..a4a73ffc6e2f02dffe10f152615e62adf408b536 100644 (file)
@@ -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);