commit ffd175b99f4e7957c4be9eed04f5124a78f192d5
Author: Richard Heck <rgh...@lyx.org>
Date:   Mon Oct 16 21:37:36 2017 -0400

    Use of div for labels causes validation errors. See #8843.
    
    (cherry picked from commit b8206a0832ff4a6d8da8a71b6058d65d721bd0e8)
---
 src/Layout.cpp |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/src/Layout.cpp b/src/Layout.cpp
index 285511a..ec23e57 100644
--- a/src/Layout.cpp
+++ b/src/Layout.cpp
@@ -1506,13 +1506,8 @@ string const & Layout::htmlitemattr() const
 
 string const & Layout::htmllabeltag() const
 {
-       if (htmllabeltag_.empty()) {
-               if (labeltype != LABEL_ABOVE &&
-                   labeltype != LABEL_CENTERED)
+       if (htmllabeltag_.empty())
                        htmllabeltag_ = "span";
-               else
-                       htmllabeltag_ = "div";
-       }
        return htmllabeltag_;
 }
 

Reply via email to