summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2010-01-18 17:04:40 -0500
committerKohei Yoshida <kyoshida@novell.com>2010-01-18 17:04:40 -0500
commit22ec1a591b08a88a661ec197e2ab5f460de1c36a (patch)
tree59cebd4ef78b56016cb26896781e752b16d30ee9
parentda041426917b25347c5b8620698989ee17539144 (diff)
Use ulink element for handling URLs.HEADmaster
-rw-r--r--source/docbook.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/source/docbook.py b/source/docbook.py
index fa21b23..054651b 100644
--- a/source/docbook.py
+++ b/source/docbook.py
@@ -332,10 +332,13 @@ class DocBookConverter:
elif src.name == 'link':
href = src.getAttr('href')
- link = dest.appendElement('link')
- if not href.startswith('http'):
+ if href.startswith('http'):
+ link = dest.appendElement('ulink')
+ link.setAttr('url', href)
+ else:
+ link = dest.appendElement('link')
href = globals.encodeID(href)
- link.setAttr('linkend', href)
+ link.setAttr('linkend', href)
self.__walkAllChildNodes(src, link)
elif src.name == 'ahelp':