diff --git a/CHANGES.rst b/CHANGES.rst index d87b8e57ef..89e8b30f1c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -32,6 +32,7 @@ Internal changes * Markdown explanations in some Jupyter Notebooks have been edited for clarity * Removed `Mapping` abstract base class types in call signatures (`dict` variables were always expected). (:pull:`1308`). * Changes in testing setup now prevent ``test_mean_radiant_temperature`` from sometimes causing a segmentation fault. (:issue:`1303`, :pull:`1315`). +* Addressed a formatting bug that caused `Indicators` with multiple variables returned to not be properly formatted in the documentation. (:issue:`1305`, :pull:`1317`). 0.41.0 (2023-02-28) ------------------- diff --git a/xclim/core/formatting.py b/xclim/core/formatting.py index 08a6429254..63fa509f39 100644 --- a/xclim/core/formatting.py +++ b/xclim/core/formatting.py @@ -600,7 +600,7 @@ def _gen_returns_section(cf_attrs: Sequence[dict[str, Any]]): attr = "" added_section += f" **{key}**: {attr};" if added_section: - section = f"{section}, with additional attributes:{added_section[:-1]}" + section = f"{section}, with additional attributes:{added_section[:-1]}\n" return section