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
This commit is contained in:
Richard Heck 2010-05-24 19:38:14 +00:00
parent b174e5616e
commit cfce27108c

View File

@ -404,8 +404,6 @@ BufferParams::BufferParams()
html_be_strict = false; html_be_strict = false;
html_math_output = MathML; html_math_output = MathML;
html_math_img_scale = 1.0; html_math_img_scale = 1.0;
html_latex_start = "<span class='latex'>";
html_latex_end = "</span>";
} }
@ -1056,10 +1054,14 @@ void BufferParams::writeFile(ostream & os) const
os << "\\tracking_changes " << convert<string>(trackChanges) << '\n' os << "\\tracking_changes " << convert<string>(trackChanges) << '\n'
<< "\\output_changes " << convert<string>(outputChanges) << '\n' << "\\output_changes " << convert<string>(outputChanges) << '\n'
<< "\\html_math_output " << html_math_output << '\n' << "\\html_math_output " << html_math_output << '\n'
<< "\\html_be_strict " << convert<string>(html_be_strict) << '\n' << "\\html_be_strict " << convert<string>(html_be_strict) << '\n';
<< "\\html_math_img_scale " << convert<string>(html_math_img_scale) << '\n'
<< "\\html_latex_start " << html_latex_start << "\n" if (html_math_img_scale != 1.0)
<< "\\html_latex_end " << html_latex_end << "\n"; os << "\\html_math_img_scale " << convert<string>(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; os << pimpl_->authorlist;
} }