https://bugs.documentfoundation.org/show_bug.cgi?id=166015

            Bug ID: 166015
           Summary: EPUB output produces incorrect chapter titles
           Product: LibreOffice
           Version: 25.2.2.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 200135
  --> https://bugs.documentfoundation.org/attachment.cgi?id=200135&action=edit
Export an EPUB of this ODT file. The chapter names in the TOC will be
incorrect.

Attached is an ODT file with a few short chapters. The chapter names are styled
as Header 2, and consist of readable words. When the EPUB is viewed, the
chapter names are only a few characters long, typically the initial letters of
one or more words in the title. For example, the first chapter is Something
New, but appears in the EPUB table of contents as simply "S".

Examining toc.xhtml inside the EPUB file, the chapter name has become <a
href="sections/section0001.xhtml">S</a>

Inside section0001.xhtml, the "S" has been separated from the "omething new",
as shown here:
<p class="para0"><span class="span0">S</span><span class="span0">omething
new</span>

A user, while using Writer, will see this as "Something New", but the resulting
EPUB table of contents will have only the letter "S" as the chapter name.

The problem may have arisen as the Header 2 was edited and re-edited, causing
Writer to have broken the words into more than one span.

I'm guessing that the ideal solution would be to join consecutive <span>s if
they have the same attributes, but this would be a bigger fix than just EPUB
export.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to