Skip to content

Commit

Permalink
Fix foot_role definition for docutils < 0.20 (#332)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitya57 authored Aug 7, 2023
1 parent bf09709 commit 13fb066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def html_footnotes(id_=RE_ID, text=RE_TEXT):
r'<dd><p>(?P<text>{text})</p>\n</dd>'.format(
id_=id_, backref_id=RE_ID, label=RE_NUM, text=text))
else:
foot_role = 'role='"note"'' if docutils.__version_info__ < (0, 20) \
foot_role = 'role="note"' if docutils.__version_info__ < (0, 20) \
else 'role="doc-footnote"'
return re.compile(
r'<aside class="footnote brackets" id="(?P<id_>{id_})"'
Expand Down

0 comments on commit 13fb066

Please sign in to comment.