changeset 1889:1405a38ae848

give the attachment filename to a colorizing parser
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sat, 17 Mar 2007 23:34:40 +0100
parents ffe2e789a7c6
children 41f50553dc70
files MoinMoin/formatter/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/formatter/__init__.py	Sat Mar 17 10:32:50 2007 +0100
+++ b/MoinMoin/formatter/__init__.py	Sat Mar 17 23:34:40 2007 +0100
@@ -130,7 +130,7 @@
                 # Try to decode text. It might return junk, but we don't
                 # have enough information with attachments.
                 content = wikiutil.decodeUnknownInput(content)
-                colorizer = Parser(content, self.request)
+                colorizer = Parser(content, self.request, filename=filename)
                 colorizer.format(self)
             except IOError:
                 pass