Skip to content

Commit

Permalink
Fixed the html rendering of <cref> with display=false. Fixes issue #516.
Browse files Browse the repository at this point in the history
 - Legacy-Id: 3672
  • Loading branch information
levkowetz committed May 26, 2020
1 parent d0eb787 commit d6bc8b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/xml2rfc/writers/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -1311,15 +1311,15 @@ def render_country(self, h, x):
# about something that we need to remember later.
# <span class="crefSource">--life</span></span>
def render_cref(self, h, x):
span = add.span(h, x, classes='cref')
disp = x.get('display') == 'true'
if disp:
span = add.span(h, x, classes='cref')
for c in x.getchildren():
self.render(span, c)
source = x.get('source')
if source:
add.span(span, None, source, classes='crefSource')
return span
return span

# 9.17. <date>
#
Expand Down

0 comments on commit d6bc8b7

Please sign in to comment.