diff options
author | Jan Holesovsky <kendy@suse.cz> | 2010-12-10 23:21:20 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2010-12-10 23:21:20 +0100 |
commit | 2f34dd4260eea803634371a9bea6cdf3689ca450 (patch) | |
tree | d9a06ea968a973ba9c5002a6d5e2724f43a9573a /helpcontent2 | |
parent | 04961b5798213de9c7983ac4be997cc46b3e3dd8 (diff) |
wikihelp: Hide the hidden <ahelp>'s.
Diffstat (limited to 'helpcontent2')
-rwxr-xr-x | helpcontent2/to-wiki/wikiconv2.py | 8 |
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': |