]> git.lyx.org Git - lyx.git/commitdiff
Output these params only when they are not default. (In the case of
authorRichard Heck <rgheck@comcast.net>
Mon, 24 May 2010 19:38:14 +0000 (19:38 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 24 May 2010 19:38:14 +0000 (19:38 +0000)
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

index f809ba4dcd511cd649b3f555d7f86df3a9aafd53..93853b17efea45d76e052a092ee1615cfdbe2c00 100644 (file)
@@ -404,8 +404,6 @@ BufferParams::BufferParams()
        html_be_strict = false;
        html_math_output = MathML;
        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'
                 << "\\output_changes " << convert<string>(outputChanges) << '\n'
                 << "\\html_math_output " << html_math_output << '\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"
-                << "\\html_latex_end " << html_latex_end << "\n";
+                << "\\html_be_strict " << convert<string>(html_be_strict) << '\n';
+       
+       if (html_math_img_scale != 1.0)
+               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;
 }