2010/11/3 Cédric Bosdonnat <cedric.bosdonnat....@free.fr> > Hi Knut, > > On Fri, 2010-10-29 at 23:30 +0200, Knut Olav Bøhmer wrote: > > I would be very happy if someone could take a look at > > the attached patch, and maybe improve it. > > First I couldn't reproduce the original problem neither with Word 97 nor > Word 2007+. It seems that Word perfectly handles the "/" as directory > separator (at least in the HYPERLINK fields). Could you provide > documents to help me reproduce it? >
Yes, it looks like the '/' and '\' was not the problem. The problem is that Libo/OOo sets an attribute that tells MS Office that the hyperlink is absolute, not relative. But the path is still relative. I'll provide a patch today. I'll make a new patch soon. > Libo/OOo exports hyperlinks with / as directory separator. MS Office > > does not understand that kind of paths, so / has to be rewritten to \ > > > > > > Description is here: > > http://qa.openoffice.org/issues/show_bug.cgi?id=115297 > > Hum... That patch doesn't seem to harm anybody, but I'll push it after > having understood the problem ;) > > I discovered another problem that may be related to your troubles: > relative hyperlinks with spaces in their path can't be opened. The > reason is that the space character is transformed into a %20 in the > HYPERLINK value... which word doesn't understand as a space but as the > "%20" string. > > Could you check that you don't fall into that problem? If you're > interested in fixing those doc path problems, then that one should be > easy for you given the nice patch you already provided ;) > > Regards, > -- > Cedric > > > > _______________________________________________ > LibreOffice mailing list > LibreOffice@lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/libreoffice > -- Knut Olav Bøhmer
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice