Fix an IndexError when generating toctree
This commit is contained in:
parent
d36027fd12
commit
205e9ca32c
14
fix-IndexError-when-generating-toctree.patch
Normal file
14
fix-IndexError-when-generating-toctree.patch
Normal file
@ -0,0 +1,14 @@
|
||||
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]
|
||||
|
@ -6,13 +6,17 @@ render the Doxygen xml output.
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 4.27.0
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Adds support for Doxygen xml output to reStructuredText and Sphinx
|
||||
|
||||
License: BSD
|
||||
URL: https://github.com/%{owner}/%{srcname}
|
||||
Source0: %{URL}/archive/v%{version}.tar.gz
|
||||
|
||||
# Fix an IndexError when generating toctree
|
||||
# Backported from upstream: https://github.com/michaeljones/breathe/pull/647
|
||||
Patch0: fix-IndexError-when-generating-toctree.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: doxygen >= 1.8.4
|
||||
@ -75,6 +79,9 @@ rm documentation/build/html/.buildinfo
|
||||
%license LICENSE
|
||||
|
||||
%changelog
|
||||
* Wed Mar 10 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.27.0-2
|
||||
- Fix an IndexError when generating toctree (rhbz#1930910)
|
||||
|
||||
* Tue Feb 16 2021 Charalampos Stratakis <cstratak@redhat.com> - 4.27.0-1
|
||||
- New upstream release 4.27.0 (rhbz#1918566, rhbz#1929448)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user