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

    Revert "ABOVE and CENTERED labels need special treatment."
    
    This reverts commit 08bf9781ee86ea7fe2c9f3a0d670cad92807a017.
---
 src/output_xhtml.cpp |   14 ++------------
 1 files changed, 2 insertions(+), 12 deletions(-)

diff --git a/src/output_xhtml.cpp b/src/output_xhtml.cpp
index bfe375f..080369f 100644
--- a/src/output_xhtml.cpp
+++ b/src/output_xhtml.cpp
@@ -1114,23 +1114,13 @@ void makeCommand(Buffer const & buf,
 
        bool const make_parid = !runparams.for_toc && runparams.html_make_pars;
 
-       if (style.labeltype == LABEL_ABOVE)
-               xs << html::StartTag("div")
-                  << pbegin->params().labelString()
-                  << html::EndTag("div");
-       else if (style.labeltype == LABEL_CENTERED)
-               xs << html::StartTag("div", "style = \"text-align: center;\"")
-                  << pbegin->params().labelString()
-                  << html::EndTag("div");
-
        openParTag(xs, style, pbegin->params(),
                   make_parid ? pbegin->magicLabel() : "");
 
        // Label around sectioning number:
        // FIXME Probably need to account for LABEL_MANUAL
-       if (style.labeltype != LABEL_NO_LABEL &&
-           style.labeltype != LABEL_ABOVE &&
-           style.labeltype != LABEL_CENTERED ) {
+       // FIXME Probably also need now to account for labels ABOVE and 
CENTERED.
+       if (style.labeltype != LABEL_NO_LABEL) {
                openLabelTag(xs, style);
                xs << pbegin->params().labelString();
                closeLabelTag(xs, style);

Reply via email to