diff options
-rw-r--r-- | source/docbook.py | 9 |
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': |