From 52c8463dfa26263a96dfc22b50d71d8ccc89d2d9 Mon Sep 17 00:00:00 2001 From: listen2 Date: Fri, 24 Aug 2012 15:37:07 -0400 Subject: [PATCH] Fix malformed HTML entities. Found with grep -P -I "&[[:alnum:]#]++[^;=]" * -R --- r2/r2/templates/link.wired | 2 +- r2/r2/templates/newlink.html | 2 +- r2/r2/templates/usertext.compact | 4 ++-- r2/r2/templates/usertext.html | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/r2/r2/templates/link.wired b/r2/r2/templates/link.wired index 00d26fe56..98c2893d9 100644 --- a/r2/r2/templates/link.wired +++ b/r2/r2/templates/link.wired @@ -34,7 +34,7 @@ ${thing.score} ${ungettext("point", "points", thing.score)} by   ${thing.author.name} -   [ +   [ ${thing.num_comments} ${ungettext("comment", "comments", thing.num_comments or 0)}] diff --git a/r2/r2/templates/newlink.html b/r2/r2/templates/newlink.html index d2e32b027..99a9f07da 100755 --- a/r2/r2/templates/newlink.html +++ b/r2/r2/templates/newlink.html @@ -31,7 +31,7 @@ <% if thing.default_sr: - sr = " " + _a_buffered(thing.default_sr.name, href=thing.default_sr.path) + sr = " " + _a_buffered(thing.default_sr.name, href=thing.default_sr.path) else: sr = _("reddit") %> diff --git a/r2/r2/templates/usertext.compact b/r2/r2/templates/usertext.compact index d0396d6fd..6b6dc668b 100644 --- a/r2/r2/templates/usertext.compact +++ b/r2/r2/templates/usertext.compact @@ -131,7 +131,7 @@      - if 1 * 2 < 3:
+ if 1 * 2 < 3:
         @@ -139,7 +139,7 @@ Lines starting with four spaces
are treated like code:
-
if 1 * 2 < 3:
    print "hello, +
if 1 * 2 < 3:
    print "hello, world!"
diff --git a/r2/r2/templates/usertext.html b/r2/r2/templates/usertext.html index 7a5b4b9f0..f1f29a522 100644 --- a/r2/r2/templates/usertext.html +++ b/r2/r2/templates/usertext.html @@ -133,7 +133,7 @@      - if 1 * 2 < 3:
+ if 1 * 2 < 3:
         @@ -141,7 +141,7 @@ Lines starting with four spaces
are treated like code:
-
if 1 * 2 < 3:
    print "hello, +
if 1 * 2 < 3:
    print "hello, world!"