Skip to content

Commit d9f0ab1

Browse files
committed
fix zero api file info format
1 parent 7ccf056 commit d9f0ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/protocol/zero/protocol.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ func (p *Protocol) String() string {
2525
builder := strings.Builder{}
2626
builder.WriteString(fmt.Sprintf("syntax = \"%s\"\n", p.Syntax))
2727
builder.WriteString(fmt.Sprintf("info (\n"))
28-
builder.WriteString(fmt.Sprintf("%sauthor: %s\n", tools.Blank(consts.IndentZero), p.author))
29-
builder.WriteString(fmt.Sprintf("%sdate: %s\n", tools.Blank(consts.IndentZero), p.date.Format(time.DateOnly)))
28+
builder.WriteString(fmt.Sprintf("%sauthor: \"%s\"\n", tools.Blank(consts.IndentZero), p.author))
29+
builder.WriteString(fmt.Sprintf("%sdate: \"%s\"\n", tools.Blank(consts.IndentZero), p.date.Format(time.DateOnly)))
3030
builder.WriteString(fmt.Sprintf(")\n\n"))
3131
builder.WriteString("\n//----------------------types define----------------------\n")
3232
msgs := make([]protocol.Message, 0, len(p.Messages))

0 commit comments

Comments
 (0)