Skip to content

Conversation

mdlinville
Copy link

Fixes #95

  • Restrict _RE_ARGSTART pattern to valid Python identifiers only
  • Add heuristics to detect non-argument lines containing URLs
  • Prevent lines with URLs from being incorrectly parsed as arguments

This fixes the issue where URLs in docstrings were being split and wrapped with incorrect HTML tags.

  • I have read the CONTRIBUTING document.
  • My changes don't require a change to the documentation, or if they do, I've added all required information.

Fixes ml-tooling#95

- Restrict _RE_ARGSTART pattern to valid Python identifiers only
- Add heuristics to detect non-argument lines containing URLs
- Prevent lines with URLs from being incorrectly parsed as arguments

This fixes the issue where URLs in docstrings were being split
and wrapped with incorrect HTML tags.
- Remove unused variable 'after_colon'
- Extract common_words list to avoid long line
- Improve code readability
- Remove trailing whitespace from line 589
@mdlinville mdlinville closed this Oct 20, 2025
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.

Broken output when a docstring has a string like https://

1 participant