1.1 --- a/parsers/MoinShare.py Sun Jul 29 00:07:45 2012 +0200
1.2 +++ b/parsers/MoinShare.py Sat Sep 29 17:53:04 2012 +0200
1.3 @@ -6,6 +6,7 @@
1.4 @license: GNU GPL (v2 or later), see COPYING.txt for details.
1.5 """
1.6
1.7 +from MoinSupport import parseAttributes
1.8 from MoinMoin import wikiutil
1.9
1.10 try:
1.11 @@ -38,19 +39,14 @@
1.12 self.raw = raw
1.13 self.request = request
1.14
1.15 - attrs, msg = wikiutil.parseAttributes(request, kw.get("format_args", ""))
1.16 -
1.17 - # The attributes returned from the formatting arguments are encoded like
1.18 - # strings.
1.19 -
1.20 - quotes = '"' + "'"
1.21 + attrs = parseAttributes(request, False)
1.22
1.23 # Get any reference to this fragment, another fragment and the content
1.24 # format.
1.25
1.26 - self.fragment = (attrs.get("fragment") or '').strip(quotes)
1.27 - self.ref = (attrs.get("ref") or '').strip(quotes)
1.28 - self.format_type = (attrs.get("format") or '').strip(quotes)
1.29 + self.fragment = attrs.get("fragment", '')
1.30 + self.ref = attrs.get("ref", '')
1.31 + self.format_type = attrs.get("format", '')
1.32
1.33 def getDigest(self):
1.34