The branch, xhtml/master, has been updated. - Log -----------------------------------------------------------------
commit c974e363ca5936875ea26530cad0afd5aebc526d Author: Josh Hieronymus <[email protected]> Date: Mon Sep 16 13:38:44 2013 -0400 Fix bug #8843: Error exporting to XHTML with numbered chapters. Chapter headings are displayed with <h1> headers, as defined in lib/layouts/stdsections.inc. However, to cause the chapter label and title to appear on different lines, the chapter label (which shows the chapter number) was wrapped in a <div> element. One workaround is to wrap the chapter label inside a <span> element and use CSS to add a line break instead. diff --git a/lib/layouts/stdsections.inc b/lib/layouts/stdsections.inc index 4724d33..320fef0 100644 --- a/lib/layouts/stdsections.inc +++ b/lib/layouts/stdsections.inc @@ -65,6 +65,12 @@ Style Chapter Size Huge EndFont HTMLTag h1 + HTMLStyle + span.chapter_label:after { + content:"\a"; + white-space: pre; + } + EndHTMLStyle End diff --git a/src/Layout.cpp b/src/Layout.cpp index 4603551..a720f06 100644 --- a/src/Layout.cpp +++ b/src/Layout.cpp @@ -1402,8 +1402,7 @@ string const & Layout::htmlitemattr() const string const & Layout::htmllabeltag() const { if (htmllabeltag_.empty()) { - if (labeltype != LABEL_ABOVE && - labeltype != LABEL_CENTERED) + if (labeltype != LABEL_CENTERED) htmllabeltag_ = "span"; else htmllabeltag_ = "div"; ----------------------------------------------------------------------- Summary of changes: lib/layouts/stdsections.inc | 6 ++++++ src/Layout.cpp | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) hooks/post-receive -- Repositories for GSOC work
