You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.1 KiB
28 lines
1.1 KiB
7 years ago
|
From 2af44a0d9f40e672dd1989b67d0e90a61deba77e Mon Sep 17 00:00:00 2001
|
||
|
From: =?UTF-8?q?Juan=20Pedro=20Bol=C3=ADvar=20Puente?= <raskolnikov@gnu.org>
|
||
|
Date: Sat, 6 May 2017 18:31:12 +0200
|
||
|
Subject: [PATCH] Fix sometimes nodes without a parent would be generated
|
||
|
|
||
|
This fixes the bug discussed here, where sometimes doc compilation would
|
||
|
crash when using recent Sphinx:
|
||
|
|
||
|
https://github.com/sphinx-doc/sphinx/issues/3709
|
||
|
---
|
||
|
breathe/renderer/sphinxrenderer.py | 3 ++-
|
||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||
|
|
||
|
diff --git a/breathe/renderer/sphinxrenderer.py b/breathe/renderer/sphinxrenderer.py
|
||
|
index 911f5ed..16415dc 100644
|
||
|
--- a/breathe/renderer/sphinxrenderer.py
|
||
|
+++ b/breathe/renderer/sphinxrenderer.py
|
||
|
@@ -1100,7 +1100,8 @@ def visit_docparamlistitem(self, node):
|
||
|
#
|
||
|
# If there is no description then render then term by itself
|
||
|
if nodelist:
|
||
|
- nodelist[0].children = [term, separator] + nodelist[0].children
|
||
|
+ nodelist[0].insert(0, term)
|
||
|
+ nodelist[0].insert(1, separator)
|
||
|
else:
|
||
|
nodelist = [term]
|
||
|
|