1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
// SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later package saver2v1 import ( "fmt" "strings" ) func textify(s string) string { if strings.Contains(s, "\n") { return fmt.Sprintf("<text>%s</text>", s) } return s }