2 from docutils import nodes
4 def fix_definition_lists(app, doctree, fromdocname):
5 for def_node in doctree.traverse(nodes.definition):
6 if isinstance(def_node[0], nodes.TextElement):
7 def_node.children.insert(0, nodes.raw('', r'\\',
11 app.connect('doctree-resolved', fix_definition_lists)