mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:31:57 +00:00
Fix formatter instability for lines only consisting of zero-width characters (#11748)
This commit is contained in:
parent
b0b4706e2d
commit
5806bc915d
6 changed files with 49 additions and 16 deletions
|
|
@ -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
|
||||
|
||||
"""
|
||||
|
||||
|
||||
"""
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue