commit f044d3a3595912415806707582e8aa6b0890bbe7
Author: Richard Kimberly Heck <[email protected]>
Date:   Sat Mar 14 18:31:25 2020 -0400

    Fix bug #11780.
    
    The preamble snippets are for LaTeX and do not need to be output
    with HTML.
---
 src/Buffer.cpp      |    4 ----
 src/LaTeXFeatures.h |    3 ++-
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index 620f5c2..ec11ac2 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -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;
diff --git a/src/LaTeXFeatures.h b/src/LaTeXFeatures.h
index 8ec5e68..af27b5c 100644
--- a/src/LaTeXFeatures.h
+++ b/src/LaTeXFeatures.h
@@ -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;
-- 
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs

Reply via email to