changeset 3006:8974561cc460

cosmetical fix for empty diff display (port from 1.6)
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Sun, 06 Jan 2008 19:04:16 +0100
parents ea3e77c4ab52
children 102a7ca14a64
files MoinMoin/action/diff.py MoinMoin/util/diff_html.py
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/action/diff.py	Sun Jan 06 18:50:30 2008 +0100
+++ b/MoinMoin/action/diff.py	Sun Jan 06 19:04:16 2008 +0100
@@ -111,7 +111,7 @@
         from MoinMoin.util import diff_text
         lines = diff_text.diff(oldpage.getlines(), newpage.getlines())
         if not lines:
-            msg = f.text(_("No differences found!"))
+            msg = f.text(" - " + _("No differences found!", formatted=False))
             if edit_count > 1:
                 msg = msg + f.paragraph(1) + f.text(_('The page was saved %(count)d times, though!') % {
                     'count': edit_count}) + f.paragraph(0)
--- a/MoinMoin/util/diff_html.py	Sun Jan 06 18:50:30 2008 +0100
+++ b/MoinMoin/util/diff_html.py	Sun Jan 06 19:04:16 2008 +0100
@@ -38,7 +38,7 @@
 
     if len(seq1) == len(seq2) and linematch[0] == (0, 0, len(seq1)):
         # No differences.
-        return _("No differences found!")
+        return " - " + _("No differences found!", formatted=False)
 
     lastmatch = (0, 0)