changeset 156:a712f180d741

moinwiki_in: support /* comments */
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Mon, 21 Mar 2011 00:58:19 +0100
parents 5b8c72be936d
children 4d706850ec7c eaa4c984d8f3
files MoinMoin/converter/moinwiki_in.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/converter/moinwiki_in.py	Sun Mar 20 23:46:01 2011 +0100
+++ b/MoinMoin/converter/moinwiki_in.py	Mon Mar 21 00:58:19 2011 +0100
@@ -586,8 +586,12 @@
     """
 
     def inline_comment_repl(self, stack, comment, comment_begin=None, comment_end=None):
-        # TODO
-        pass
+        if comment_begin:
+            attrib = {moin_page('class'): 'comment'}
+            elem = moin_page.span(attrib=attrib)
+            stack.push(elem)
+        else:
+            stack.pop()
 
     inline_emphstrong = r"""
         (?P<emphstrong>