aboutsummaryrefslogtreecommitdiff
path: root/tvsaver/saver2v2/util.go
blob: 988d2be69ad724d9420b1e81c159247095f08ec8 (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 saver2v2

import (
	"fmt"
	"strings"
)

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

	return s
}