Skip to content

Commit

Permalink
Fix Python 3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
waveform80 committed Jul 21, 2024
1 parent bb681eb commit e28b753
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tvrip/richrst.py
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,8 @@ def doc_ref_role(
roles.register_local_role('doc', doc_ref_role)


rest_theme = Theme(DEFAULT_STYLES.copy() | {
_rest_style = DEFAULT_STYLES.copy()
_rest_style.update({
'rest.emph': Style(italic=True),
'rest.strong': Style(bold=True),
'rest.paragraph': Style(),
Expand All @@ -664,3 +665,5 @@ def doc_ref_role(
'rest.table.header': Style(bold=True),
'rest.table.cell': Style(),
})
rest_theme = Theme(_rest_style)
del _rest_style

0 comments on commit e28b753

Please sign in to comment.