Skip to content

Commit

Permalink
Merge pull request #7173 from tk0miya/7170_debug_print
Browse files Browse the repository at this point in the history
Fix #7170: text: Remove debug print
  • Loading branch information
tk0miya authored Feb 17, 2020
2 parents 46f7dc5 + 97a3ddd commit 8ccae39
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
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

Testing
--------
Expand Down
1 change: 0 additions & 1 deletion sphinx/writers/text.py
Original file line number Diff line number Diff line change
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 8ccae39

Please sign in to comment.