Skip to content

Commit

Permalink
Move space escaping to individual tagline templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
chromakode committed Oct 9, 2012
1 parent e673f1f commit 9d97503
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions r2/r2/templates/message.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,16 +58,14 @@
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"<b>%s</b>" % author,
dest=u"<b>%s</b>" % thing.dest)

taglinetext = taglinetext.replace(' ', '&#32;')
%>
${unsafe(taglinetext)}
</span>
Expand Down

0 comments on commit 9d97503

Please sign in to comment.