From ed037cfa22db503ba856bfd7fadad304bfb893cb Mon Sep 17 00:00:00 2001 From: Stefan van der Walt Date: Wed, 17 Jul 2024 11:51:42 -0700 Subject: [PATCH] Dedent section starting with `.. deprecation::` Closes https://github.com/numpy/numpydoc/issues/573 --- numpydoc/docscrape.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/numpydoc/docscrape.py b/numpydoc/docscrape.py index aa13217e..5f4dcdd7 100644 --- a/numpydoc/docscrape.py +++ b/numpydoc/docscrape.py @@ -206,7 +206,7 @@ def _read_to_next_section(self): section += self._doc.read_to_next_empty_line() - return section + return dedent_lines(section) def _read_sections(self): while not self._doc.eof():