# HG changeset patch # User Paul Boddie # Date 1370819644 -7200 # Node ID 18ec7794c19cd029c54a9d961f0d5ea3691f84b9 # Parent 90465326c4dcfc153dce830833c8dd806c670c18 Avoided quoting for macro arguments where possible, although the Color2 macro should really be modified to properly support quoting. Added Color2 macro information. diff -r 90465326c4dc -r 18ec7794c19c README.txt --- a/README.txt Mon Jun 10 01:12:25 2013 +0200 +++ b/README.txt Mon Jun 10 01:14:04 2013 +0200 @@ -38,6 +38,7 @@ http://moinmo.in/ParserMarket/ImprovedTableParser http://hgweb.boddie.org.uk/MoinSupport +http://moinmo.in/MacroMarket/Color2 Quick Start ----------- diff -r 90465326c4dc -r 18ec7794c19c common.py --- a/common.py Mon Jun 10 01:12:25 2013 +0200 +++ b/common.py Mon Jun 10 01:14:04 2013 +0200 @@ -38,6 +38,9 @@ headings = blocktypes.keys(); headings.remove("bq") def quote_macro_argument(arg): - return '"%s"' % arg.replace('"', '""') + if arg.find('"') != -1: + return '"%s"' % arg.replace('"', '""') + else: + return arg # vim: tabstop=4 expandtab shiftwidth=4