Edgewall Software

Changes between Version 48 and Version 49 of WikiMacros


Ignore:
Timestamp:
Jun 26, 2015, 11:49:30 AM (9 years ago)
Author:
anonymous
Comment:

fix overindent

Legend:

Unmodified
Added
Removed
Modified
  • WikiMacros

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