aboutsummaryrefslogtreecommitdiff
path: root/tvsaver/saver2v1/util.go
blob: e20644977b3fc8f0547edf0ad1147865f8282256 (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 saver2v1

import (
	"fmt"
	"strings"
)

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

	return s
}