From cfce27108c2e6b6e57c773e5637897ec22d649ab Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 24 May 2010 19:38:14 +0000 Subject: [PATCH] Output these params only when they are not default. (In the case of html_latex_*, we'll put the default elsewhere.) git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34492 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/BufferParams.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/BufferParams.cpp b/src/BufferParams.cpp index f809ba4dcd..93853b17ef 100644 --- a/src/BufferParams.cpp +++ b/src/BufferParams.cpp @@ -404,8 +404,6 @@ BufferParams::BufferParams() html_be_strict = false; html_math_output = MathML; html_math_img_scale = 1.0; - html_latex_start = ""; - html_latex_end = ""; } @@ -1056,10 +1054,14 @@ void BufferParams::writeFile(ostream & os) const os << "\\tracking_changes " << convert(trackChanges) << '\n' << "\\output_changes " << convert(outputChanges) << '\n' << "\\html_math_output " << html_math_output << '\n' - << "\\html_be_strict " << convert(html_be_strict) << '\n' - << "\\html_math_img_scale " << convert(html_math_img_scale) << '\n' - << "\\html_latex_start " << html_latex_start << "\n" - << "\\html_latex_end " << html_latex_end << "\n"; + << "\\html_be_strict " << convert(html_be_strict) << '\n'; + + if (html_math_img_scale != 1.0) + os << "\\html_math_img_scale " << convert(html_math_img_scale) << '\n'; + if (!html_latex_start.empty()) + os << "\\html_latex_start " << html_latex_start << '\n'; + if (!html_latex_end.empty()) + os << "\\html_latex_end " << html_latex_end << '\n'; os << pimpl_->authorlist; } -- 2.39.2