Skip to content

Commit

Permalink
Fixed an issue with the v3 html renderer when given an author without…
Browse files Browse the repository at this point in the history
… address entry. Fixes issue #390.

 - Legacy-Id: 2976
  • Loading branch information
levkowetz committed Feb 6, 2019
1 parent 9eddc6b commit 2d0a01a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cli/xml2rfc/writers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,9 @@ def render_author(self, h, x):
#
address = x.find('./address')
postal = x.find('./address/postal')
if address is None:
address = lxml.etree.Element('address')
x.append(address)
if postal is None:
# We render author name as part of postal, so make sure it's there
address.insert(0, lxml.etree.Element('postal'))
Expand Down

0 comments on commit 2d0a01a

Please sign in to comment.