mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 14:27:58 -05:00
Move space escaping to individual tagline templates.
This commit is contained in:
@@ -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"<b>%s</b>" % author,
|
||||
dest=u"<b>%s</b>" % thing.dest)
|
||||
|
||||
taglinetext = taglinetext.replace(' ', ' ')
|
||||
%>
|
||||
${unsafe(taglinetext)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user