##// END OF EJS Templates
templatefilters: improve person() for john.doe@example.com...
Adrian Buehlmann -
r13951:7a6a8a06 default
parent child Browse files
Show More
@@ -245,9 +245,10 b' def person(author):'
245 if not '@' in author:
245 if not '@' in author:
246 return author
246 return author
247 f = author.find('<')
247 f = author.find('<')
248 if f == -1:
248 if f != -1:
249 return util.shortuser(author)
249 return author[:f].rstrip()
250 return author[:f].rstrip()
250 f = author.find('@')
251 return author[:f].replace('.', ' ')
251
252
252 def rfc3339date(text):
253 def rfc3339date(text):
253 """:rfc3339date: Date. Returns a date using the Internet date format
254 """:rfc3339date: Date. Returns a date using the Internet date format
General Comments 0
You need to be logged in to leave comments. Login now