summaryrefslogtreecommitdiff
path: root/helpcontent2/to-wiki/wikiconv2.py
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2010-12-10 23:21:20 +0100
committerJan Holesovsky <kendy@suse.cz>2010-12-10 23:21:20 +0100
commit2f34dd4260eea803634371a9bea6cdf3689ca450 (patch)
treed9a06ea968a973ba9c5002a6d5e2724f43a9573a /helpcontent2/to-wiki/wikiconv2.py
parent04961b5798213de9c7983ac4be997cc46b3e3dd8 (diff)
wikihelp: Hide the hidden <ahelp>'s.
Diffstat (limited to 'helpcontent2/to-wiki/wikiconv2.py')
-rwxr-xr-xhelpcontent2/to-wiki/wikiconv2.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/helpcontent2/to-wiki/wikiconv2.py b/helpcontent2/to-wiki/wikiconv2.py
index cfe5fcda2f..74b3f31362 100755
--- a/helpcontent2/to-wiki/wikiconv2.py
+++ b/helpcontent2/to-wiki/wikiconv2.py
@@ -975,9 +975,11 @@ class Paragraph(ElementBase):
def start_element(self, parser, name, attrs):
if name == 'ahelp':
- # TODO extended tips are ignored for now, just the text is used
- # verbatim
- pass
+ try:
+ if attrs['visibility'] == 'hidden':
+ self.parse_child(Ignore(attrs, self, name))
+ except:
+ pass
elif name == 'br':
self.parse_child(Br(attrs, self))
elif name == 'comment':