You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
where the indentation are tabs. Rst recommends spaces but allows tabs. Blacken does not and fails.
Traceback (most recent call last):
File "/workspace/.pyenv_mirror/user/current/bin/blacken-docs", line 8, in <module>
sys.exit(main())
File "/workspace/.pyenv_mirror/user/current/lib/python3.10/site-packages/blacken_docs/__init__.py", line 293, in main
retv |= format_file(
File "/workspace/.pyenv_mirror/user/current/lib/python3.10/site-packages/blacken_docs/__init__.py", line 236, in format_file
new_contents, errors = format_str(
File "/workspace/.pyenv_mirror/user/current/lib/python3.10/site-packages/blacken_docs/__init__.py", line 215, in format_str
src = RST_RE.sub(_rst_match, src)
File "/workspace/.pyenv_mirror/user/current/lib/python3.10/site-packages/blacken_docs/__init__.py", line 122, in _rst_match
min_indent = min(INDENT_RE.findall(match["code"]))
ValueError: min() arg is an empty sequence
Would be great if:
blacken allows tabs
has better error handling when looking for min/max indentation in general
The text was updated successfully, but these errors were encountered:
I think it would be acceptable to add support for tabs. But I wouldn't like to limit this to a single markup language, so work on this should add support and tests for all of them. I don't have time to do that myself, but if you would like to make a PR please do so.
Python Version
3.10
Package Version
1.13.0
Description
where the indentation are tabs. Rst recommends spaces but allows tabs. Blacken does not and fails.
Would be great if:
The text was updated successfully, but these errors were encountered: