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.
Cross-reference reads "Error! Reference source not found.".
Cross-reference reads "1.1".
User Profile Reset: No
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
- Version 188.8.131.52.alpha0+ (Build ID: efca6f15609322f62a35619619a6d5fe5c9bd5a)
- Version: 184.108.40.206.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.
This is not a regression. Reproduced in
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":
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:
Affected users are encouraged to test the fix and report feedback.
works ok in Version: 220.127.116.11.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