Skip to content

Commit

Permalink
Update docstrfmt/docstrfmt.py
Browse files Browse the repository at this point in the history
Co-authored-by: Joel Payne <15524072+LilSpazJoekp@users.noreply.github.com>
  • Loading branch information
jonathf and LilSpazJoekp committed Aug 26, 2024
1 parent 5e21f3e commit 8a6c4c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docstrfmt/docstrfmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ def literal_block(
and node.attributes["classes"][0] == "code"
):
args = "".join([f" {arg}" for arg in node.attributes["classes"][1:]])
yield f".. code::{args}"
yield f".. code-block::{args}"
else:
yield "::"
yield from self._prepend_if_any(
Expand Down

0 comments on commit 8a6c4c2

Please sign in to comment.