diff MoinMoin/items/__init__.py @ 298:07143bd03aed

fix pygments converter call for new converter api
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 31 Jul 2011 17:24:22 +0200
parents ebdfe9448e01
children fed6024028b4 0fd6527bd6aa
line wrap: on
line diff
--- a/MoinMoin/items/__init__.py	Sun Jul 31 17:17:29 2011 +0200
+++ b/MoinMoin/items/__init__.py	Sun Jul 31 17:24:22 2011 +0200
@@ -1133,7 +1133,7 @@
         # TODO: use registry as soon as it is in there
         from MoinMoin.converter.pygments_in import Converter as PygmentsConverter
         pygments_conv = PygmentsConverter(contenttype=self.contenttype)
-        doc = pygments_conv(data_text.split(u'\n'))
+        doc = pygments_conv(data_text)
         # TODO: Real output format
         html_conv = reg.get(type_moin_document, Type('application/x-xhtml-moin-page'))
         doc = html_conv(doc)