If I have MS Word document with hyperlink to C:\\Documents and Settings\somepath\somefile.pdf After running wvHtml I will get <a href="C:\\Documents" Reproducible: Always Steps to Reproduce: 1. Create word document with hyperlink to file/directory with spaces in its name (click hyper link in OpenOffice.Org or MS Word and enter if in linux file:///some/path<space>with<space>space/file.doc in MSWord in Windows hyperlink to file location in C:\\Documents and Settings\Your Profile\file.doc) save document as createdfile.doc 2. run wvHtml createdfile.doc result.html 3. find a href=" in result.html Actual Results: hyperlink in resulting html <a href="C:\\Documents"> Expected Results: hyperlink in resulting html <a href="C:\\Documents and Settings\\MyProfile\file.doc"> wv 1.2.4 available and has the same bug Patch available create by me: --- wv-1.2.3.orig/field.c 2006-03-15 18:55:45.000000000 +0200 +++ wv-1.2.3/field.c 2007-02-02 14:10:02.000000000 +0200 @@ -325,7 +325,7 @@ switch (s_Tokens[tokenIndex].m_type) { case FC_HYPERLINK: - token = strtok (NULL, "\"\" "); + token = strtok (NULL, "\"\""); printf ("<a href=\"%s\">", token); break; case FC_EMBED: @@ -334,7 +334,7 @@ /* printf ("<!--%s-->", token); */ break; case FC_PAGEREF: - token = strtok (NULL, "\"\" "); + token = strtok (NULL, "\"\""); printf ("<a href=\"#%s\" %s>", token, xml_slash); break; case FC_EDITTIME:
Created attachment 108931 [details, diff] Patch which fixes bug removes space in strtok delimeters on hyperlinks
Created attachment 108932 [details] Ebuild to use the patch ebuild which uses the patch attached earlier
Small addition: if link contains spaces encoded %20 then href will be generated correctly (in case of OpenOffice usually is, and in MS Word also, but sometimes they do not mask spaces with %20 (in OpenOffice if you change %20 to <space> in link manually), in MS Word I don't know as I got .doc file from client).
Could you submit this upstream (http://bugzilla.abisource.com)? I'd like to see their take on this, since I have zero experience with wv.
See: http://bugzilla.abisource.com/show_bug.cgi?id=10828 They don't maintain wv itself, they use only wv library and tell that package wv is no longer mainated/supported, buy i see that wv update (wvware.sourceforge.net) was on October 26, 2006 (wv-1.2.4 release). I noticed that website was not updated long ago and show news only for March 2006. Need to check how abiword converts files :), but i don't wont the abiword itself, I need converted only...
abiword --to=html has different output format from wv-1.2.3, wv-1.2.4 It's a lot of time for me to change software which has to be used today, so I will use unmaintained package, which is working fine :)
So are you saying that 1.2.4 works?
No, i'm saying that my patch works for 1.2.3. And i'm using it. Not sure if patch will suit 1.2.4. I'm just telling that i'm using patched wv not the abiword.
Still valid with 1.2.7 (just added to the tree) ?