mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 05:16:21 +00:00
Don't output box width if it's 100% (default).
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38226 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
41463b84e5
commit
8bc43f2ecb
@ -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() + "; ");
|
||||
|
Loading…
Reference in New Issue
Block a user