From 70899f0c154bed67e376080169f52e853bb9e9bd Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 5 Jun 2009 19:42:56 +0000 Subject: [PATCH] Separate HTML preamble information. This could be used for javascript, or anything else one would like to add to the header. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29967 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Buffer.cpp | 6 +++++- src/LaTeXFeatures.cpp | 25 ++++++++++++++++++++++++- src/LaTeXFeatures.h | 2 ++ src/Layout.cpp | 8 +++++++- src/Layout.h | 4 ++++ src/TextClass.h | 1 + src/insets/InsetLayout.cpp | 5 +++++ src/insets/InsetLayout.h | 4 ++++ 8 files changed, 52 insertions(+), 3 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index f09a00248d..d8296e9795 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -1377,7 +1377,11 @@ void Buffer::writeLyXHTMLSource(odocstream & os, // FIXME Get this during validation? What about other meta-data? os << "TBA\n"; - docstring styleinfo = features.getTClassHTMLStyles(); + os << features.getTClassHTMLPreamble(); + + os << '\n'; + + docstring const styleinfo = features.getTClassHTMLStyles(); if (!styleinfo.empty()) { os << "