]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetListings.cpp
Fix bug #8580: Do not include material in the XHTML TOC that is not
[lyx.git] / 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);