From 5675184234eb779d053a66ffbfd523cce9bce7bb Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Thu, 12 Dec 2019 23:19:44 +0100 Subject: [PATCH] Remove redundant Text member from ItemElement --- listitem.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/listitem.go b/listitem.go index 789047c..dc2855b 100644 --- a/listitem.go +++ b/listitem.go @@ -6,7 +6,6 @@ import ( ) type ItemElement struct { - Text string Enumeration uint } @@ -14,13 +13,11 @@ func (e *ItemElement) Render(w io.Writer, ctx RenderContext) error { var el *BaseElement if e.Enumeration > 0 { el = &BaseElement{ - Token: e.Text, Style: ctx.style[Enumeration], Prefix: strconv.FormatInt(int64(e.Enumeration), 10), } } else { el = &BaseElement{ - Token: e.Text, Style: ctx.style[Item], } }