Skip to content

Commit

Permalink
Merge branch '2.4.x' into 7137_viewcode_non_python_code
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Feb 17, 2020
2 parents 85138ff + 8ccae39 commit 739cf21
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -22,6 +22,7 @@ Bugs fixed
* #7146: autodoc: IndexError is raised on suppressed type_comment found
* #7161: autodoc: typehints extension does not support parallel build
* #7151: crashed when extension assigns a value to ``env.indexentries``
* #7170: text: Remove debug print
* #7137: viewcode: Avoid to crash when non-python code given

Testing
Expand Down
1 change: 0 additions & 1 deletion sphinx/writers/text.py
Expand Up @@ -918,7 +918,6 @@ def _visit_admonition(self, node: Element) -> None:
def _depart_admonition(self, node: Element) -> None:
label = admonitionlabels[node.tagname]
indent = sum(self.stateindent) + len(label)
print(self.states[-1])
if (len(self.states[-1]) == 1 and
self.states[-1][0][0] == 0 and
MAXWIDTH - indent >= sum(len(s) for s in self.states[-1][0][1])):
Expand Down

0 comments on commit 739cf21

Please sign in to comment.