From e76763008dc2b1750154fb00285056605c882e40 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Mon, 10 May 2021 20:11:58 -0400 Subject: [PATCH] fix textType --- text.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/text.go b/text.go index 0ee9e71..ad4d153 100644 --- a/text.go +++ b/text.go @@ -22,20 +22,20 @@ type Text struct { func (t TextType) String() string { switch t { case HTML: - return "HTML" + return "html" case XHTML: - return "XHTML" + return "xhtml" default: - return "TEXT" + return "text" } } // ToTextType converts a string to the enumerated value. TEXT is default. func ToTextType(t string) TextType { switch t { - case "HTML": + case "html": return HTML - case "XHTML": + case "xhtml": return XHTML default: return TEXT -- 2.38.5