Page 1 of 1

docx->xhtml hyperlinks

PostPosted: Wed Jun 26, 2013 12:43 am
by kwhite
When converting from docx to xhtml the hyperlink text gets repeated

<p class="Normal DocDefaults "><a href="http://smashthestack.org"><span class="Hyperlink DefaultParagraphFont " style="font-family: Arial Black;">hyperlink1</span><span class="Hyperlink DefaultParagraphFont " style="font-family: Arial Black;">hyperlink1</span></a></p>

<p class="Normal DocDefaults "> </p>

<p class="Normal DocDefaults "><a href="http://smashthestack.org"><span class="Hyperlink DefaultParagraphFont " style="font-family: Arial Black;">hyperlink2</span><span class="Hyperlink DefaultParagraphFont " style="font-family: Arial Black;">hyperlink2</span></a></p>


When converted back to docx has some strange side effects. The first hyperlink is lost, and second hyperlink has w:t>hyperlink2hyperlink2</w:t

any thoughts on how to fix this?

EDIT: may be the same as this issue #70 on github https://github.com/plutext/docx4j/issues/70

Re: docx->xhtml hyperlinks

PostPosted: Wed Jun 26, 2013 1:54 pm
by jason
What version of docx4j are you using?

Re: docx->xhtml hyperlinks

PostPosted: Wed Jun 26, 2013 11:13 pm
by kwhite
I pulled the lastest from github. now the hyperlinks are missing completely when converting back to docx from xhtml