Apache OpenOffice (AOO) Bugzilla – Issue 10873
When saving HTML loses anchor points
Last modified: 2013-08-07 14:41:36 UTC
Normally when you are editing a .sxw file and you Save As... into HTML the bookmarks are saved in the resultant HTML as anchor elements. However in this instance it loses all bookmarks/anchors after the first illustration in the document. The accompanying stripped-down .sxw file illustrates this; there are bookmarks at all headings, but when you save as HTML, in the HTML the last two headings have no anchors. (At this point the word processor still has the last two bookmarks internally, but when you close and reopen the HTML file they are gone.) If you remove Figure 1 the problem goes away. If I open the HTML file in the word processor, recreate the missing bookmarks and save as HTML again, once again the new bookmarks are omitted. I can see no workaround for this.
Created attachment 4409 [details] Small .sxw file illustrating anchor bug
Created attachment 4410 [details] .zip file of HTML resulting from Save As... into Web Page
Also happens in 1.0.2
Stripped down the file further. The bug is completely reproducible whenever the following are true: 1. There is an illustration number field anywhere in the document. 2. There is a non-empty frame somewhere in the document. Anchors are lost (omitted from saved HTML) after the frame.
Created attachment 4694 [details] Further stripped down .sxw
DAMN! Previous experiment with a cut-down file suggested a workaround: delete all illustration number fields. But when I tried this in the full-size document it didn't help. Another odd observation: a single tag survived even though it was after the first illustration. It was near the end of the document. All in all this is a very weird bug. And I have still not found a useful workaround.
ES-MIB: - load the last sample file - notice the 2 bookmarks (in the Navigator) at the end of the doc ("Introduction" and "Design Principles"). - Save as HTML - Reload -> Bookmarks are gone
Reassigned to mib
.
If 2 bookmarks get lost during the export, it's a data loss. Strictly considered, it should be then a P2. But because this does not happen with every bookmark in every document I keep it a P3. Nonetheless, for we still don't know if it may affect a larger group of users and in which circumstance this happens, I'll maintain the OOo 2.0 target and clear the developper note. ->AMA/MIB: feel free to comment.
resolved in CWS html03
reopend for reassign
verified in cws html03
*** Issue 28509 has been marked as a duplicate of this issue. ***
Ok in src680m71