From 9d97503ccbe950a5bc207dcd9ea7026de750bc95 Mon Sep 17 00:00:00 2001 From: Max Goodman Date: Tue, 9 Oct 2012 15:53:50 -0700 Subject: [PATCH] Move space escaping to individual tagline templates. --- r2/r2/templates/message.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/r2/r2/templates/message.html b/r2/r2/templates/message.html index c79229236..abb2fb0d2 100644 --- a/r2/r2/templates/message.html +++ b/r2/r2/templates/message.html @@ -58,16 +58,14 @@ ${parent.thing_css_class(what)} ${"new" if thing.new else ""} ${"was-comment" if thing.subreddit.path) if not thing.dest: thing.dest = subreddit - author = thing.updated_author % dict( + author = thing.updated_author.replace(' ', ' ') % dict( author=author, subreddit=subreddit) - taglinetext = thing.taglinetext % dict( + taglinetext = thing.taglinetext.replace(' ', ' ') % dict( when=capture(thing_timestamp, thing, thing.timesince), author=u"%s" % author, dest=u"%s" % thing.dest) - - taglinetext = taglinetext.replace(' ', ' ') %> ${unsafe(taglinetext)}