From: Richard Heck Date: Tue, 17 Oct 2017 01:37:36 +0000 (-0400) Subject: Use of div for labels causes validation errors. See #8843. X-Git-Tag: 2.3.0rc1~34 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ffd175b99f4e7957c4be9eed04f5124a78f192d5;p=lyx.git Use of div for labels causes validation errors. See #8843. (cherry picked from commit b8206a0832ff4a6d8da8a71b6058d65d721bd0e8) --- diff --git a/src/Layout.cpp b/src/Layout.cpp index 285511a104..ec23e57f1e 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_; }