mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix bug #11780.
The preamble snippets are for LaTeX and do not need to be output
with HTML.
(cherry picked from commit f044d3a359
)
This commit is contained in:
parent
cffdac49f5
commit
429d2171b1
@ -2208,10 +2208,6 @@ void Buffer::writeLyXHTMLSource(odocstream & os,
|
|||||||
if (!styles.empty())
|
if (!styles.empty())
|
||||||
os << "\n<!-- Text Class Preamble -->\n" << styles << '\n';
|
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
|
// 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.
|
// either here, as part of the header, or else in a separate file.
|
||||||
odocstringstream css;
|
odocstringstream css;
|
||||||
|
@ -95,7 +95,8 @@ public:
|
|||||||
void addPreambleSnippet(docstring const & snippet, bool allowdupes = false);
|
void addPreambleSnippet(docstring const & snippet, bool allowdupes = false);
|
||||||
///
|
///
|
||||||
TexString getPreambleSnippets() const;
|
TexString getPreambleSnippets() const;
|
||||||
///
|
/// Adds CSS information for HTML export.
|
||||||
|
/// Note that addPreambleSnippet is for LaTeX-type export
|
||||||
void addCSSSnippet(std::string const &);
|
void addCSSSnippet(std::string const &);
|
||||||
///
|
///
|
||||||
docstring getCSSSnippets() const;
|
docstring getCSSSnippets() const;
|
||||||
|
@ -91,6 +91,7 @@ What's new
|
|||||||
|
|
||||||
* LYXHTML
|
* LYXHTML
|
||||||
|
|
||||||
|
- Don't output LaTeX preamble snippets with HTML (bug 11780).
|
||||||
|
|
||||||
|
|
||||||
* ADVANCED FIND AND REPLACE
|
* ADVANCED FIND AND REPLACE
|
||||||
|
Loading…
Reference in New Issue
Block a user