]> git.lyx.org Git - features.git/commitdiff
Simplify CSS classes for floats.
authorRichard Heck <rgheck@lyx.org>
Sat, 30 Jul 2016 04:03:35 +0000 (00:03 -0400)
committerRichard Heck <rgheck@lyx.org>
Sun, 31 Jul 2016 07:45:05 +0000 (03:45 -0400)
Fixes bug #8605 and probably parts of #8755 and #9328.

(cherry picked from commit 50c139195083120fb79a215d21cedda516a3451c)

src/Floating.cpp
status.22x

index 03bde1fe249b9fee7ea0b3aebf09a25e12e9cb65..8309e79caa1297f47c313b4597f30dc3262e3e62 100644 (file)
@@ -44,7 +44,7 @@ Floating::Floating(string const & type, string const & placement,
 string const & Floating::htmlAttrib() const
 {
        if (html_attrib_.empty())
-               html_attrib_ = "class='float " + defaultCSSClass() + "'";
+               html_attrib_ = "class='" + defaultCSSClass() + "'";
        return html_attrib_;
 }
 
index 89fd9173a2a18c49185a85c5435fc934d1cb71c7..1b4b5762ec4970b34823a5d83a6958bc33aab1a7 100644 (file)
@@ -97,6 +97,8 @@ What's new
 
 - Fix output of floats, etc, inside environments (bug 9094).
 
+- Simplify XHTML output for floats, etc (bug 8605).
+
 - Add "dir='auto'" to body tag, which should help a lot with export of
   RTL languages (bug 8279, partly).