Description: A cross-reference to a bookmark with a space in its name is broken after saving the document as DOCX. It looks like the space in the bookmark name is replaced with an underscore, but the cross-reference itself is still referring to the original name. It looks fine when you first open the document in Word (2013 if it matters), but as soon as you go to Print or Print Preview, it replaces the cross-reference with "Error! Reference source not found.". Steps to Reproduce: Open the attached "Cross ref test.odt", save as DOCX, open DOCX in Word, print or print preview. Actual Results: Cross-reference reads "Error! Reference source not found.". Expected Results: Cross-reference reads "1.1". Reproducible: Always User Profile Reset: No Additional Info: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:49.0) Gecko/20100101 Firefox/49.0
Created attachment 127923 [details] Document containing cross-reference to a bookmark
Confirmed in - Version 4.1.0.0.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a) - Version: 5.3.0.0.alpha0+ Build ID: ae3ec79354f7b4967e736c6a4cd7c08fc52e2b7d CPU Threads: 4; OS Version: Linux 4.2; UI Render: default; Locale: ca-ES (ca_ES.UTF-8); Calc: group
looking at bug 42346, cross refs to bookmars was one of the items that did work :\
Thanks, Cor, but this report is a bit more specific. It's only when the bookmark name contains a space, and only when you export to DOCX and then print.
Hi Cor, This is not a regression. Reproduced in LibreOffice 3.3.0 OOO330m19 (Build:6) tag libreoffice-3.3.0.4
I'm not convinced that it has been inherited from OOo - that has never been able to save to DOCX, as far as I know.
Vasily Melenchuk committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=aa3c0ddc61726f9e2e927e08966acd63a3fcf968 tdf#103090 replace spaces by underscore in bookmark names for DOCX. It will be available in 6.0.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
works ok in Version: 6.0.0.0.alpha0+ Build ID: 5bbfa7ab8ded08d73dcb86c5e9fa3692b629e5bf CPU threads: 4; OS: Linux 4.10; UI render: default; VCL: gtk2; TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-09-11_08:32:29 Locale: nl-NL (nl_NL.UTF-8); Calc: group thanks!