changeset 326:4a7b7dc46df7

fixed MoinMoinBugs/SearchCannotRenderInPlaintext imported from: moin--main--1.5--patch-330
author Florian Festi <Florian.Festi@trick.informatik.uni-stuttgart.de>
date Sun, 18 Dec 2005 15:58:28 +0000
parents 1307d18233ed
children 555f6e5f6c14
files MoinMoin/search.py
diffstat 1 files changed, 2 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/search.py	Sun Dec 18 14:16:53 2005 +0000
+++ b/MoinMoin/search.py	Sun Dec 18 15:58:28 2005 +0000
@@ -1084,13 +1084,10 @@
     def getvalue(self):
         """ Return output in div with CSS class """
         write = self.request.write
-        # TODO: this will not work with other formatter than
-        # text_html. we should add a div/section creation method to all
-        # formatters.
         value = [
-            self.formatter.open('div', attr={'class': 'searchresults'}),
+            self.formatter.rawHTML('<div class="searchresults">'),
             self.buffer.getvalue(),
-            self.formatter.close('div'),
+            self.formatter.rawHTML('</div>'),
             ]
         return '\n'.join(value)