diff --git a/CHANGES.rst b/CHANGES.rst index 859f93f..0ee835b 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -2,6 +2,11 @@ Change Log ========== +4.0.1 (10 February 2024) +======================== + +- Fix trailing whitespace in markdown output + 4.0.0 (10 February 2024) ======================== diff --git a/README.rst b/README.rst index 711f0a0..bbd8266 100644 --- a/README.rst +++ b/README.rst @@ -203,5 +203,5 @@ Releasing a new version to PyPI: git push --tags rm -rf ./dist hatch build - hatch publish - gh release create v$VERSION dist/goodconf-$VERSION* --generate-notes --verify-tag \ No newline at end of file + hatch publish --user __token__ + gh release create v$VERSION dist/goodconf-$VERSION* --generate-notes --verify-tag diff --git a/goodconf/__init__.py b/goodconf/__init__.py index 1971677..093eb5e 100644 --- a/goodconf/__init__.py +++ b/goodconf/__init__.py @@ -252,7 +252,7 @@ def generate_markdown(cls) -> str: if cls.__doc__: lines.extend([f"# {cls.__doc__}", ""]) for k, v in cls.__fields__.items(): - lines.append(f"* **{k}** ") + lines.append(f"* **{k}**") if v.required: lines[-1] = lines[-1] + "_REQUIRED_" if v.field_info.description: