https://bugs.documentfoundation.org/show_bug.cgi?id=168181
Bug ID: 168181
Summary: RTF import: Hyperlink pointing to a system path with
backslashes imports with double backslashes
Product: LibreOffice
Version: unspecified
Hardware: All
OS: All
Status: UNCONFIRMED
Keywords: filter:rtf
Severity: normal
Priority: medium
Component: Writer
Assignee: [email protected]
Reporter: [email protected]
Created attachment 202601
--> https://bugs.documentfoundation.org/attachment.cgi?id=202601&action=edit
A sample RTF with hyperlink with backslashes
The RTF is simplified from what Word 2016 generated. The system path in it is
c:\temp\doc1.doc. According to RTF spec 1.9.1 (which points to OOXML), the
backslashes in field text must be escaped with a second backslash. That gives
field text of c:\\temp\\doc1.doc. Then to save this to RTF, which itself uses
backslash as a special character (starting keywords), every backslash must be
escaped with another backslash. This produces c:\\\\temp\\\\doc1.doc; and
indeed, Word created exactly that string in the RTF. It must be reversed to
original c:\temp\doc1.doc on import; but Writer imports c:\\temp\\doc1.doc.
Ref: https://ask.libreoffice.org/t/125994/
--
You are receiving this mail because:
You are the assignee for the bug.