On Windows, the final rendered pdocs output might look like this: # Module Name \r\n \r\n\r\n \r\n```\r\ndef function. The extra carriage returns and leading whitespace aren't removed, so tables and code blocks aren't valid markdown.
This PR is a very minor fix that first standardizes on newline-only line endings (remove carriage returns) then escapes optional internal spaces. If needed, I can add a fix to re-add carriage returns, but that doesn't appear to be necessary when testing on Windows and Mac.
I've been testing these changes as part of my calcipy project
On Windows, the final rendered pdocs output might look like this:
# Module Name \r\n \r\n\r\n \r\n```\r\ndef function
. The extra carriage returns and leading whitespace aren't removed, so tables and code blocks aren't valid markdown.This PR is a very minor fix that first standardizes on newline-only line endings (remove carriage returns) then escapes optional internal spaces. If needed, I can add a fix to re-add carriage returns, but that doesn't appear to be necessary when testing on Windows and Mac.
I've been testing these changes as part of my calcipy project