Apache OpenOffice (AOO) Bugzilla – Issue 51443
Broken table of contents hyperlink to heading with line break when saved as HTML
Last modified: 2017-05-20 11:26:03 UTC
If I create a heading with a line break (SHIFT+ENTER) in it, create a table of contents with hyperlinks (Entries structure LS/E/LE), and save as HTML Document, then the HTML link & target anchors will have a line break in them. This fails in Mozilla, and I'm fairly sure it's invalid HTML. A bit like this: <div> <b>Contents</b> </div> <p> <a href="#1.Bug report by James G">Bug report<br /> by James G</a> </p> <h1> <a name="1.Bug report by James G"></a>Bug report<br /> by James G </h1> My version of OpenOffice reports itself as 1.9.109 As an aside, would it be possible to restrict the anchor/fragment names to be compatible with XHTML's ID type instead of just HTML's CDATA type? I will be saving documents as HTML, but it would be nice to be able to convert to XHTML later without breaking links to anchors. This page seems to have a suggestion for being compatible with both: <http://www.w3.org/TR/xhtml1/#guidelines> In particular the section: C.8. Fragment Identifiers Which suggests limiting names & ids to: [A-Za-z][A-Za-z0-9:_.-]* Thanks.
Reassigned to ES.
ES->TRA: this is a regression compared to OOo 1.1.4. Before, the link contained the line break as char code (%0A), now it inserts a plain text line break in the link.
TRA: Retargeted due to limited resources.
tra->mba: One for the writer team
Reset assigne to the default "issues@openoffice.apache.org".