mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Fix bug #11780.
The preamble snippets are for LaTeX and do not need to be output with HTML.
This commit is contained in:
parent
5333998570
commit
f044d3a359
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user