mirror of
				https://github.com/astral-sh/ruff.git
				synced 2025-10-31 12:05:57 +00:00 
			
		
		
		
	 3aa7e35a4c
			
		
	
	
		3aa7e35a4c
		
			
		
	
	
	
	
		
			
			Given:
```python
def func():
    """
    Example:
    .. code-block:: python
        import foo
    """
```
Removing the newline after the `Example:` header breaks Sphinx
rendering.
See: https://github.com/astral-sh/ruff/issues/11577
		
	
			
		
			
				
	
	
		
			67 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
	
		
			583 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| def func():
 | |
|     """
 | |
|     Example:
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 | |
| 
 | |
| 
 | |
| def func():
 | |
|     """
 | |
|     Example:
 | |
| 
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 | |
| 
 | |
| 
 | |
| def func():
 | |
|     """
 | |
|     Example:
 | |
| 
 | |
| 
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 | |
| 
 | |
| 
 | |
| def func():
 | |
|     """
 | |
|     Example
 | |
|     -------
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 | |
| 
 | |
| 
 | |
| def func():
 | |
|     """
 | |
|     Example
 | |
|     -------
 | |
| 
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 | |
| 
 | |
| 
 | |
| def func():
 | |
|     """
 | |
|     Example
 | |
|     -------
 | |
| 
 | |
| 
 | |
| 
 | |
|     .. code-block:: python
 | |
| 
 | |
|         import foo
 | |
|     """
 |