Skip to content

Commit c01d90d

Browse files
committed
fix: remove trailing space from test documentation timestamp
Remove trailing space after timestamp in auto-generated test documentation to prevent conflicts with markdown formatting that strips trailing spaces. The generate_test_docs.py script was adding a trailing space after the timestamp, which was then removed by the markdown formatter (sed), causing the file to appear modified on every build. This fix ensures the generated documentation matches the formatted output.
1 parent 87166f8 commit c01d90d

3 files changed

Lines changed: 6 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Added
11+
1112
- validate test documentation is committed before release (4dc9e77)
1213

1314
### Changed
15+
1416
- update test documentation with new argument parsing tests (27e1773)
1517

1618
### Fixed
19+
- remove trailing space from test documentation timestamp (4ac9ea9)
20+
1721
- remove duplicate PyPI publishing from release.yml (ea67a30)
1822

1923
## [0.3.3] - 2025-11-03

docs/tests.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Test Documentation
22

3-
> **Auto-generated** on 2025-11-03 14:16:04
3+
> **Auto-generated** on 2025-11-03 14:16:04
44
> **Total Tests**: 361
55
66
This page provides a comprehensive overview of all tests in the project, automatically extracted from test docstrings.

scripts/generate_test_docs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def main() -> None:
135135
timestamp = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
136136
content = [
137137
"# Test Documentation\n",
138-
f"> **Auto-generated** on {timestamp} ",
138+
f"> **Auto-generated** on {timestamp}",
139139
f"> **Total Tests**: {total_count}\n",
140140
"This page provides a comprehensive overview of all tests in the project, "
141141
"automatically extracted from test docstrings.\n",

0 commit comments

Comments
 (0)