StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

& in label of hyperlink - Follow-up to issue 147 #154

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce the problem:
Add a html link in your model using "SyntaxKind.Html" (I am using freemarker 
and docx). The link should contain a label which contains a "&" encoded with 
"&"
Example: <a 
href="https://www.google.com/search?q=xdocreport">XDocReport&amp;others</a>

What is the expected output:
I would like to see a hyperlink in the generated MS-Word. Currently MS-Word 
shows an error for the generated document.

Version of the product used: 0.9.8 and 1.0.0-SNAPSHOT

This is a follow-up to Issue 147 where the "& was part of the url":
http://code.google.com/p/xdocreport/issues/detail?id=147

From the fix of Issue 147 I suppose that unescape/escape which you did for the 
reference should also work for the label. Am I right? I will attach a patch 
file with changes that would do that, including a second test case for this 
scenario.

Thanks and best regards,
Reinhard

Original issue reported on code.google.com by rjedin...@gmail.com on 21 Sep 2012 at 4:41

Attachments:

GoogleCodeExporter commented 8 years ago
Hi Reinhard,

Thank's for the patch.
I have commited your patch on Git.

Many thank's!

Regards Angelo

Original comment by angelo.z...@gmail.com on 21 Sep 2012 at 9:08

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 21 Sep 2012 at 9:09