19 lines
704 B
Diff
19 lines
704 B
Diff
# sphinx-doc__sphinx-8713
|
|
# Loki Mode Multi-Agent Patch
|
|
# Attempts: 1
|
|
|
|
--- a/sphinx/ext/napoleon/docstring.py
|
|
+++ b/sphinx/ext/napoleon/docstring.py
|
|
@@ -613,7 +613,10 @@ class GoogleDocstring:
|
|
|
|
def _parse_other_parameters_section(self, section):
|
|
# type: (unicode) -> List[unicode]
|
|
- return self._format_fields(_('Other Parameters'), self._consume_fields())
|
|
+ fields = self._consume_fields()
|
|
+ if self._config.napoleon_use_param:
|
|
+ return self._format_docutils_params(fields)
|
|
+ else:
|
|
+ return self._format_fields(_('Other Parameters'), fields)
|
|
|
|
def _parse_parameters_section(self, section):
|
|
# type: (unicode) -> List[unicode]
|