The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit 7821022ca09ba1ba59acff4b56346cbf518ab3be
Author: Richard Heck <[email protected]>
Date:   Tue Jul 10 17:17:45 2012 -0400

    Fix bug #7947 by using InsetLayout rather than hardcoding things.

diff --git a/src/insets/InsetWrap.cpp b/src/insets/InsetWrap.cpp
index 79dd806..f15b0dd 100644
--- a/src/insets/InsetWrap.cpp
+++ b/src/insets/InsetWrap.cpp
@@ -226,12 +226,13 @@ docstring InsetWrap::xhtml(XHTMLStream & xs, OutputParams 
const & rp) const
 {
        string const len = params_.width.asHTMLString();
        string const width = len.empty() ? "50%" : len;
-       string const attr = "class='wrap' style='width: " + width + ";'";
-       xs << html::StartTag("div", attr);
+       InsetLayout const & il = getLayout();
+       string const tag = il.htmltag();
+       string const attr = il.htmlattr() + " style='width:" + width + ";'";
+       xs << html::StartTag(tag, attr);
        docstring const deferred = 
                InsetText::insetAsXHTML(xs, rp, InsetText::WriteInnerTag);
-       if (!len.empty())
-               xs << html::EndTag("div");
+       xs << html::EndTag(tag);
        return deferred;
 }
 

-----------------------------------------------------------------------

Summary of changes:
 src/insets/InsetWrap.cpp |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to