Skip to content

Commit

Permalink
Merge pull request #1481 from thatsmydoing/escape-macro-description
Browse files Browse the repository at this point in the history
generate: properly escape macro descriptions
  • Loading branch information
rsteube authored Jan 15, 2023
2 parents 44f5a13 + 7bd5891 commit 6befe94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/generate/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func macros() {

sortedDescriptions := make([]string, 0)
for key, value := range descriptions {
sortedDescriptions = append(sortedDescriptions, fmt.Sprintf(`"%v": "%v",`, key, value))
sortedDescriptions = append(sortedDescriptions, fmt.Sprintf(`%#v: %#v,`, key, value))
}
sort.Strings(sortedDescriptions)

Expand Down

0 comments on commit 6befe94

Please sign in to comment.