Issue 10873 - When saving HTML loses anchor points
Summary: When saving HTML loses anchor points
Status: CLOSED FIXED
Alias: None
Product: Writer
Classification: Application
Component: code (show other issues)
Version: OOo 1.0.2
Hardware: PC Windows NT
: P3 Trivial with 1 vote (vote)
Target Milestone: ---
Assignee: eric.savary
QA Contact: issues@sw
URL:
Keywords:
: 28509 (view as issue list)
Depends on:
Blocks:
 
Reported: 2003-01-22 22:22 UTC by Unknown
Modified: 2013-08-07 14:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Small .sxw file illustrating anchor bug (12.71 KB, application/octet-stream)
2003-01-22 22:24 UTC, Unknown
no flags Details
.zip file of HTML resulting from Save As... into Web Page (1.96 KB, application/octet-stream)
2003-01-22 22:26 UTC, Unknown
no flags Details
Further stripped down .sxw (9.69 KB, application/octet-stream)
2003-02-12 19:53 UTC, Unknown
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-01-22 22:22:44 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.
Comment 1 Unknown 2003-01-22 22:24:50 UTC
Created attachment 4409 [details]
Small .sxw file illustrating anchor bug
Comment 2 Unknown 2003-01-22 22:26:47 UTC
Created attachment 4410 [details]
.zip file of HTML resulting from Save As... into Web Page
Comment 3 Unknown 2003-01-24 19:25:27 UTC
Also happens in 1.0.2
Comment 4 Unknown 2003-02-12 19:49:04 UTC
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.
Comment 5 Unknown 2003-02-12 19:53:45 UTC
Created attachment 4694 [details]
Further stripped down .sxw
Comment 6 Unknown 2003-02-12 22:22:16 UTC
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.
Comment 7 eric.savary 2003-06-30 16:41:14 UTC
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
Comment 8 eric.savary 2003-06-30 16:41:47 UTC
Reassigned to mib
Comment 9 michael.brauer 2003-08-26 08:08:46 UTC
.
Comment 10 andreas.martens 2003-09-12 15:12:53 UTC
.
Comment 11 eric.savary 2003-09-30 19:06:47 UTC
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.
Comment 12 michael.brauer 2004-11-08 14:10:07 UTC
resolved in CWS html03
Comment 13 michael.brauer 2004-11-10 09:20:15 UTC
reopend for reassign
Comment 14 michael.brauer 2004-11-10 09:20:42 UTC
.
Comment 15 michael.brauer 2004-11-10 09:21:24 UTC
.
Comment 16 eric.savary 2004-11-15 17:36:09 UTC
verified in cws html03
Comment 17 michael.brauer 2004-12-03 12:40:34 UTC
*** Issue 28509 has been marked as a duplicate of this issue. ***
Comment 18 michael.brauer 2004-12-03 12:43:02 UTC
*** Issue 28509 has been marked as a duplicate of this issue. ***
Comment 19 eric.savary 2005-01-08 22:56:00 UTC
Ok in src680m71