mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.6.x] Fixed #21869 -- Fixed docs building with Sphinx 1.2.1.
Thanks tragiclifestories for the report.
Backport of e1d18b9d2e from master
			
			
This commit is contained in:
		| @@ -101,11 +101,13 @@ class DjangoHTMLTranslator(SmartyPantsHTMLTranslator): | |||||||
|         self.compact_p = self.context.pop() |         self.compact_p = self.context.pop() | ||||||
|         self.body.append('</table>\n') |         self.body.append('</table>\n') | ||||||
|  |  | ||||||
|     # <big>? Really? |  | ||||||
|     def visit_desc_parameterlist(self, node): |     def visit_desc_parameterlist(self, node): | ||||||
|         self.body.append('(') |         self.body.append('(')  # by default sphinx puts <big> around the "(" | ||||||
|         self.first_param = 1 |         self.first_param = 1 | ||||||
|  |         self.optional_param_level = 0 | ||||||
|         self.param_separator = node.child_text_separator |         self.param_separator = node.child_text_separator | ||||||
|  |         self.required_params_left = sum([isinstance(c, addnodes.desc_parameter) | ||||||
|  |                                          for c in node.children]) | ||||||
|  |  | ||||||
|     def depart_desc_parameterlist(self, node): |     def depart_desc_parameterlist(self, node): | ||||||
|         self.body.append(')') |         self.body.append(')') | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user