]> git.llucax.com Git - z.facultad/75.00/informe.git/blob - ext/fixdl.py
Correcciones de typos y errores de redacción
[z.facultad/75.00/informe.git] / ext / fixdl.py
1
2 from docutils import nodes
3
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'\\',
8                                         format='latex'))
9
10 def setup(app):
11         app.connect('doctree-resolved', fix_definition_lists)
12