Changes between Version 12 and Version 13 of WikiMacros


Ignore:
Timestamp:
17/07/2015 11:41:26 (9 years ago)
Author:
trac
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • WikiMacros

    v12 v13  
    176176
    177177class HelloWorldMacro(WikiMacroBase):
    178         def expand_macro(self, formatter, name, text, args):
    179                 text = "whatever '''wiki''' markup you want, even containing other macros"
    180                 # Convert Wiki markup to HTML, new style
    181                 out = StringIO.StringIO()
    182                 Formatter(self.env, formatter.context).format(text, out)
    183                 return Markup(out.getvalue())
     178    def expand_macro(self, formatter, name, text, args):
     179        text = "whatever '''wiki''' markup you want, even containing other macros"
     180        # Convert Wiki markup to HTML, new style
     181        out = StringIO.StringIO()
     182        Formatter(self.env, formatter.context).format(text, out)
     183        return Markup(out.getvalue())
    184184}}}