no \t to space line (#3177)
Co-authored-by: chenjieping <chenjieping@kezaihui.com>
This commit is contained in:
@@ -171,7 +171,9 @@ func apiFormat(data string, skipCheckDeclare bool, filename ...string) (string,
|
||||
tapCount++
|
||||
}
|
||||
}
|
||||
util.WriteIndent(&builder, tapCount)
|
||||
if line != "" {
|
||||
util.WriteIndent(&builder, tapCount)
|
||||
}
|
||||
builder.WriteString(line + pathx.NL)
|
||||
if strings.HasSuffix(noCommentLine, leftParenthesis) || strings.HasSuffix(noCommentLine, leftBrace) {
|
||||
tapCount++
|
||||
|
||||
Reference in New Issue
Block a user