aboutsummaryrefslogtreecommitdiff
path: root/tvsaver/saver2v3/util.go
blob: 4dec724487c3352d97d41be9a1ba50b7dee5808d (plain)
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 saver2v3

import (
	"fmt"
	"strings"
)

func textify(s string) string {
	if strings.Contains(s, "\n") {
		return fmt.Sprintf("<text>%s</text>", s)
	}

	return s
}