From 2f34dd4260eea803634371a9bea6cdf3689ca450 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 10 Dec 2010 23:21:20 +0100 Subject: wikihelp: Hide the hidden 's. --- helpcontent2/to-wiki/wikiconv2.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'helpcontent2/to-wiki') 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': -- cgit