w2l bugfix: Correct treatment of URL decoded characters (%xy) in links
git-svn-id: svn://svn.code.sf.net/p/writer2latex/code/trunk@114 f0f2a975-2e09-46c8-9428-3b39399b9f3c
This commit is contained in:
parent
755db936f2
commit
2483bd1bba
2 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
|||
*
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* Version 1.2 (2011-02-01)
|
||||
* Version 1.2 (2011-07-20)
|
||||
*
|
||||
*/
|
||||
|
||||
|
@ -845,12 +845,12 @@ public class FieldConverter extends ConverterHelper {
|
|||
if (ofr.getTextContent(node).trim().equals(sHref)) {
|
||||
// The link text equals the url
|
||||
ldp.append("\\url{")
|
||||
.append(oc.isInFootnote() ? escapeHref(Misc.urlDecode(sHref)) : Misc.urlDecode(sHref))
|
||||
.append(oc.isInFootnote() ? escapeHref(sHref) : sHref)
|
||||
.append("}");
|
||||
}
|
||||
else {
|
||||
ldp.append("\\href{")
|
||||
.append(oc.isInFootnote() ? escapeHref(Misc.urlDecode(sHref)) : Misc.urlDecode(sHref))
|
||||
.append(oc.isInFootnote() ? escapeHref(sHref) : sHref)
|
||||
.append("}{");
|
||||
// ignore text style (let hyperref.sty handle the decoration):
|
||||
palette.getInlineCv().traverseInlineText(node,ldp,oc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue