google / google/yapf

docstrings not format rightly

Open
#575 3 comments 2 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
14k
Forks
904
PR merge metrics
No merged PRs in 30d

Description

```python
def GetArgs():
"""
Some docstrings.
"""
pass
```
For some reason, the original codes are indent with three spaces.Now, I want to use yapf to format with four spaces indent. But actual what I get is:

```python
def GetArgs():
""" <----- Only this line is four spaces.Other lines are still with three spaces.
Some docstrings.
"""
pass
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.