Skip to content

Fix the bare insertion case of Caret annotations#119

Open
czxdev wants to merge 1 commit into
0xabu:mainfrom
czxdev:fix/caret
Open

Fix the bare insertion case of Caret annotations#119
czxdev wants to merge 1 commit into
0xabu:mainfrom
czxdev:fix/caret

Conversation

@czxdev

@czxdev czxdev commented May 27, 2026

Copy link
Copy Markdown

Recently, I encountered an AssertionError at line 215 in pdfannots/printer/markdown.py. It turns out that the text associated with a Caret annotation is not always a space, which triggers the assertion failure.

This PR improves the formatting logic for various cases shown in
issue46_withcarets.pdf. This PDF file triggers the AssertionError on the main branch but passes successfully with this PR.

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.

1 participant