]> git.lyx.org Git - features.git/commitdiff
Don't output box width if it's 100% (default).
authorRichard Heck <rgheck@comcast.net>
Sun, 3 Apr 2011 12:57:33 +0000 (12:57 +0000)
committerRichard Heck <rgheck@comcast.net>
Sun, 3 Apr 2011 12:57:33 +0000 (12:57 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38226 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBox.cpp

index 7b8d8232c292ee734d8d81d90f4158eb39279982..ec113744964695eaa25f40d5ad45a07e40c795cf 100644 (file)
@@ -478,8 +478,11 @@ docstring InsetBox::xhtml(XHTMLStream & xs, OutputParams const & runparams) cons
        // construct attributes
        string attrs = "class='" + params_.type + "'";
        string style;
-       if (!params_.width.empty())
-               style += ("width: " + params_.width.asHTMLString() + "; ");
+       if (!params_.width.empty()) {
+               string w = params_.width.asHTMLString();
+               if (w != "100%")
+                       style += ("width: " + params_.width.asHTMLString() + "; ");
+       }
        // The special heights don't really mean anything for us.
        if (!params_.height.empty() && params_.height_special == "none")
                style += ("height: " + params_.height.asHTMLString() + "; ");