]> git.lyx.org Git - lyx.git/commitdiff
Fix bug #11780.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 14 Mar 2020 22:31:25 +0000 (18:31 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Sat, 14 Mar 2020 22:31:25 +0000 (18:31 -0400)
The preamble snippets are for LaTeX and do not need to be output
with HTML.

src/Buffer.cpp
src/LaTeXFeatures.h

index 620f5c29048fc30e949531918e464caece6ed27f..ec11ac2c88b3ca433b9d3d04495dec41b4cfc863 100644 (file)
@@ -2261,10 +2261,6 @@ Buffer::ExportStatus Buffer::writeLyXHTMLSource(odocstream & os,
                if (!styles.empty())
                        os << "\n<!-- Text Class Preamble -->\n" << styles << '\n';
 
-               styles = features.getPreambleSnippets().str;
-               if (!styles.empty())
-                       os << "\n<!-- Preamble Snippets -->\n" << styles << '\n';
-
                // we will collect CSS information in a stream, and then output it
                // either here, as part of the header, or else in a separate file.
                odocstringstream css;
index 8ec5e68cce022b0715dba9efb48f3b2889ee575c..af27b5c232617d7ad2406d67b5e6d41b985340d1 100644 (file)
@@ -93,7 +93,8 @@ public:
        void addPreambleSnippet(docstring const & snippet, bool allowdupes = false);
        ///
        TexString getPreambleSnippets() const;
-       ///
+       /// Adds CSS information for HTML export.
+       /// Note that addPreambleSnippet is for LaTeX-type export
        void addCSSSnippet(std::string const &);
        ///
        docstring getCSSSnippets() const;