From b8206a0832ff4a6d8da8a71b6058d65d721bd0e8 Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Mon, 16 Oct 2017 21:37:36 -0400 Subject: [PATCH] Use of div for labels causes validation errors. See #8843. --- src/Layout.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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_; } -- 2.39.2