|
|
@ -171,7 +171,9 @@ func apiFormat(data string, skipCheckDeclare bool, filename ...string) (string,
|
|
|
|
tapCount++
|
|
|
|
tapCount++
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if line != "" {
|
|
|
|
util.WriteIndent(&builder, tapCount)
|
|
|
|
util.WriteIndent(&builder, tapCount)
|
|
|
|
|
|
|
|
}
|
|
|
|
builder.WriteString(line + pathx.NL)
|
|
|
|
builder.WriteString(line + pathx.NL)
|
|
|
|
if strings.HasSuffix(noCommentLine, leftParenthesis) || strings.HasSuffix(noCommentLine, leftBrace) {
|
|
|
|
if strings.HasSuffix(noCommentLine, leftParenthesis) || strings.HasSuffix(noCommentLine, leftBrace) {
|
|
|
|
tapCount++
|
|
|
|
tapCount++
|
|
|
|