Skip to content

Conversation

@Crozzers
Copy link
Contributor

This PR fixes #629, which was caused by a nbsp on the end of a table.

The true cause was the whitespace trimming regex in the tables extra:

trim_space_re = '^[ \t\n]+|[ \t\n]+$'

This regex matches spaces, tabs and newlines but misses all other forms of whitespace. Replacing these character classes with a simple \s fixed the issue

@nicholasserra
Copy link
Collaborator

Thank you!

@nicholasserra nicholasserra merged commit adf4e81 into trentm:master May 24, 2025
15 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.

IndexError for markdown tables with \xa0

2 participants