python-breathe/fix-IndexError-when-generating-toctree.patch
DistroBaker c6045f4955 Merged update from upstream sources
This is an automated DistroBaker update from upstream sources.
If you do not know what this is about or would like to opt out,
contact the OSCI team.

Source: https://src.fedoraproject.org/rpms/python-breathe.git#4073f6b334a5fa99324f2c972a906101febc59bb
2021-03-19 14:46:55 +00:00

15 lines
591 B
Diff

diff --git a/breathe/renderer/sphinxrenderer.py b/breathe/renderer/sphinxrenderer.py
index 93aad82..4382c8f 100644
--- a/breathe/renderer/sphinxrenderer.py
+++ b/breathe/renderer/sphinxrenderer.py
@@ -1354,8 +1354,8 @@ class SphinxRenderer:
'''
section = nodes.section()
section['ids'].append(self.get_refid(node.id))
- section += self.create_doxygen_target(node)
section += nodes.title(node.title, node.title)
+ section += self.create_doxygen_target(node)
section += self.render_iterable(node.content_)
return [section]