Fix for node without parent
This commit is contained in:
		
							parent
							
								
									1ebdbe71b3
								
							
						
					
					
						commit
						c3144fb8c2
					
				| @ -7,12 +7,13 @@ render the Doxygen xml output. | |||||||
| 
 | 
 | ||||||
| Name:           python-%{srcname} | Name:           python-%{srcname} | ||||||
| Version:        4.6.0 | Version:        4.6.0 | ||||||
| Release:        2%{?dist} | Release:        3%{?dist} | ||||||
| Summary:        Adds support for Doxygen xml output to reStructuredText and Sphinx | Summary:        Adds support for Doxygen xml output to reStructuredText and Sphinx | ||||||
| 
 | 
 | ||||||
| License:        BSD | License:        BSD | ||||||
| URL:            https://github.com/%{owner}/%{srcname} | URL:            https://github.com/%{owner}/%{srcname} | ||||||
| Source0:        https://github.com/%{owner}/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{commit0}.tar.gz | Source0:        https://github.com/%{owner}/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{commit0}.tar.gz | ||||||
|  | Patch0:         python-breathe_node_without_parent.patch | ||||||
| 
 | 
 | ||||||
| BuildArch:      noarch | BuildArch:      noarch | ||||||
| 
 | 
 | ||||||
| @ -85,6 +86,9 @@ rm documentation/build/html/.buildinfo | |||||||
| %license LICENSE | %license LICENSE | ||||||
| 
 | 
 | ||||||
| %changelog | %changelog | ||||||
|  | * Sat Aug 05 2017 Dave Johansen <davejohansen@gmail.com> - 4.6.0-3 | ||||||
|  | - Fix for node without parent | ||||||
|  | 
 | ||||||
| * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2 | * Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.6.0-2 | ||||||
| - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild | - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild | ||||||
| 
 | 
 | ||||||
|  | |||||||
							
								
								
									
										27
									
								
								python-breathe_node_without_parent.patch
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										27
									
								
								python-breathe_node_without_parent.patch
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,27 @@ | |||||||
|  | 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] | ||||||
|  |   | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user