def render_authors(authors):
 for x in authors:
  x.setdefault(u'email', u'')
 entries = [(u'\n        <p>\n            <strong>%(name)s</strong><br>\n            <em>%(title)s</em><br>\n            %(email)s\n        </p>\n    ' % author) for author in authors]
 return u''.join(entries)

def render_authors ( authors ) : for x in authors : x . setdefault ( u'email' , u'' ) entries = [ ( u'\n        <p>\n            <strong>%(name)s</strong><br>\n            <em>%(title)s</em><br>\n            %(email)s\n        </p>\n    ' % author ) for author in authors ] return u'' . join ( entries )
render a list of author details into richtext html .