Apache OpenOffice (AOO) Bugzilla – Issue 29934
empty hyperlinks lead to invalid RTF, and other problems
Last modified: 2017-05-20 11:25:54 UTC
Try this: 1. Open a new text document and write the following text: This is a hyperlink followed by some text. 2. Select the word "hyperlink". 3. Using right-click, Character, hyperlink tab, turn this into a hyerlink by entering a URL. 4. Select the word "hyperlink" again. 5. Right-click, Character, hyperlink tab, clear out the URL and click "Apply". Now, the word "hyperlink" is no longer visibly rendered as a hyperlink. However, after saving the document as a .sxw, "content.xml" still embeds it into a hyperlink element. 6. Save as RTF. The RTF is invalid. When reloading it into OOo, the text following the word "hyperlink" is dropped. (I had equivalent cases where the RTF would not load at all but caused an error message by OOo.) 7. Save as Word 97. When reloading the .doc into OOo, the word "hyperlink" is a hyperlink whose target is a file URL corresponding to the same .doc file. - The invalid RTF is definitely a defect. - In my opinion, there should not be a way to specify empty hyperlinks. Either there is a URL, or there is no hyperlink. - Or, if there is a plausible reason to allow empty hyperlinks, then (a) they should be visibly rendered as hyperlinks, and (b) there should be an obvious and fool-proof way to remove hyperlinks. The latter is a recurring issue and has already received lots of discussion in this bug tracker.
Created attachment 15736 [details] sxw containing "pseudo" hyperlink
MRU->MM: export the attached document to RTF and reload. The text following "hyperlink" will not be displayed, though it available somewhere in the RTF code.
Because of a shortage of resources we have to retarget this issue to OOo later.
mmaher->flr: Yours I think
reassigning to hbrinkm
Likely the same problem here. When i type a web address like www.test.de, an hyperlink will be created. When i delete the target of the hyperlink, the hyperlink seems to be gone. When i export my document to a rtf file and reopen it, all text after the link will be gone. When i open the rtf in a text editor, i see three closing braces after the link. Deleting two of them will bring back the missing text. The bug is still present in OpenOffice 2.3 and 3.0 on Suse Linux and Windows Vista.
Created attachment 59341 [details] File that shows a defect hyperlink
*** Issue 97236 has been marked as a duplicate of this issue. ***
Reset assigne to the default "issues@openoffice.apache.org".