Tue Aug 23 23:54:36 UTC 2005 Alberto Bertogli * Add author information in the RSS feed. Thanks to Remko Troncon for the initial implementation; this is basically the same with the logic simplified a bit. diff -rN -u old-darcsweb/darcsweb.cgi new-darcsweb/darcsweb.cgi --- old-darcsweb/darcsweb.cgi 2016-01-23 18:32:17.000000000 +0000 +++ new-darcsweb/darcsweb.cgi 2016-01-23 18:32:17.000000000 +0000 @@ -1197,14 +1197,26 @@ time.localtime(p.date)) link = '%s/%s;a=commit;h=%s' % (config.myurl, config.myreponame, p.hash) + + # the author field is tricky because the standard requires it + # has an email address; so we need to check that and lie + # otherwise; there's more info at + # http://feedvalidator.org/docs/error/InvalidContact.html + if "@" in p.author: + author = p.author + else: + author = "%s " % p.author + print """ %(title)s + %(author)s %(pdate)s %(link)s %(desc)s """ % { 'title': escape(title), + 'author': author, 'pdate': pdate, 'link': link, 'desc': escape(p.name),