Skip to content

Commit

Permalink
docutils: Ensure that the alectryon-floating class is always applied
Browse files Browse the repository at this point in the history
Coq blocks at the top level would add the alectryon-floating class applied to
the Document object, and it would subsequently be lost.
  • Loading branch information
cpitclaudel committed Jun 19, 2020
1 parent 421dd28 commit 514ff97
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alectryon/docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def apply_coq(self):
if 'none' in options:
node.parent.remove(node)
else:
node.parent.set_class("alectryon-floating")
classes = ("alectryon-floating",)
fragments = group_whitespace_with_code(process_io_annotations(fragments))
AlectryonTransform.set_fragment_annots(fragments, options)
html = writer.gen_fragments_html(fragments, classes=classes).render(pretty=False)
Expand Down

0 comments on commit 514ff97

Please sign in to comment.