Skip to content

Commit

Permalink
Avoid duplicate calls to autodoc-process-docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
jnothman committed Oct 30, 2017
1 parent 215be8e commit 86a7483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/ext/autosummary/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ def get_items(self, names):
# -- Grab the summary

documenter.add_content(None)
doc = list(documenter.process_doc([self.result.data]))
doc = [self.result.data]

while doc and not doc[0].strip():
doc.pop(0)
Expand Down

0 comments on commit 86a7483

Please sign in to comment.