changeset 1518:986be5c76da5

Fixed BR error in fullsearch.py, reworded title search hint.
author Alexander Schremmer <alex AT alexanderweb DOT de>
date Sat, 02 Sep 2006 23:58:49 +0200
parents 23ac69c53779
children cc27f2c82cde
files MoinMoin/action/fullsearch.py
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/fullsearch.py	Fri Sep 01 23:44:04 2006 +0200
+++ b/MoinMoin/action/fullsearch.py	Sat Sep 02 23:58:49 2006 +0200
@@ -12,7 +12,6 @@
 from MoinMoin.Page import Page
 from MoinMoin import wikiutil
 from MoinMoin.support.parsedatetime.parsedatetime import Calendar
-from MoinMoin.widget import html
 
 def isTitleSearch(request):
     """ Return True for title search, False for full text search 
@@ -47,7 +46,8 @@
     """
     return ''.join([
         f.paragraph(1, attr={'class': 'searchhint'}),
-        html.BR().join(hints),
+        # this is illegal formatter usage anyway, so we can directly use a literal
+        "<br>".join(hints),
         f.paragraph(0),
     ])
 
@@ -226,9 +226,8 @@
         querydict.update({'titlesearch': 0})
 
         hints.append(''.join([
-            _('(!) You\'re conducting a title search so your search '
-                'results might not contain all information available for '
-                'your search query in this wiki.'),
+            _("(!) You're performing a title search that might not include"
+                ' all related results of your search query in this wiki. [[BR]]'),
             ' ',
             f.url(1, href=request.page.url(request, querydict, escape=0,
                 relative=False)),