1 files changed, 5 insertions(+), 5 deletions(-)
M text.go
M text.go => text.go +5 -5
@@ 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