On Friday, January 18, 2013 12:57:51 AM UTC-8, Dirk Stöcker wrote:
Hello,
I try to detect in expand_macro() of a wiki processor if I'm in preview
state or in final state. Is this possible. If yes, how?
Hi, Will this do what you are trying to accomplish?:
'preview' in formatter.req.args and formatter.req.args.get('preview') == 'Preview Page'
It will evaluate to True when the user has explicitly pressed the "Preview page" button.