Skip to content

Commit

Permalink
quote every value when explicitely asked
Browse files Browse the repository at this point in the history
  • Loading branch information
wazazaby committed Oct 18, 2023
1 parent 3173f60 commit d07f7d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vimebu.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func (b *Builder) label(name string, escapeQuote bool, stringValue *string, bool
// appendString quotes (if needed) and appends s to b's underlying buffer.
func (b *Builder) appendString(s string, escapeQuote bool) {
buf := b.underlying.AvailableBuffer()
if escapeQuote && strings.Contains(s, `"`) {
if escapeQuote {
buf = strconv.AppendQuote(buf, s)
} else {
buf = append(buf, doubleQuotesByte)
Expand Down

0 comments on commit d07f7d8

Please sign in to comment.