Skip to content

Conversation

@sarnold
Copy link
Contributor

@sarnold sarnold commented May 1, 2025

This fixes issue #703 and includes a minor mypy fix for None vs string. Thanks!

SJLC and others added 3 commits May 1, 2025 12:09
In MarkdownPublisher.create_index(), the top-level header line was
getting overwritten by second call of write_text(), which always
writes whole file rather than appending.

Also add more mocks to testcase test_index_tree() so that it will
show a document tree (instead of MagicMock placeholders with id
numbers that change on every run of the test)
* fixes one mypy error: Unsupported operand types for + ("str" and "None")

Signed-off-by: Stephen L Arnold <[email protected]>
Signed-off-by: Stephen L Arnold <[email protected]>
Copy link
Member

@jacebrowning jacebrowning left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@jacebrowning jacebrowning merged commit 2b43f63 into doorstop-dev:develop May 1, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants