Fix formatter instability for lines only consisting of zero-width characters (#11748)

This commit is contained in:
Micha Reiser
2024-06-05 17:55:14 +02:00
committed by GitHub
parent b0b4706e2d
commit 5806bc915d
6 changed files with 49 additions and 16 deletions

View File

@@ -0,0 +1,23 @@
---
source: crates/ruff_python_formatter/tests/fixtures.rs
input_file: crates/ruff_python_formatter/resources/test/fixtures/ruff/docstring_non_visible_characters.py
---
## Input
```python
# Regresssion test for https://github.com/astral-sh/ruff/issues/11724
'''

'''
```
## Output
```python
# Regresssion test for https://github.com/astral-sh/ruff/issues/11724
"""

"""
```