Drop redundant TableData struct

This commit is contained in:
Christian Muehlhaeuser
2019-11-26 04:37:30 +01:00
parent 8fd35dc929
commit 8f086bc134
2 changed files with 15 additions and 19 deletions
+3 -10
View File
@@ -10,7 +10,6 @@ import (
"os"
"github.com/microcosm-cc/bluemonday"
"github.com/olekukonko/tablewriter"
bf "gopkg.in/russross/blackfriday.v2"
)
@@ -18,16 +17,10 @@ var (
stripper = bluemonday.StrictPolicy()
)
type TableData struct {
table *tablewriter.Table
tableHeader []string
tableCell []string
}
type TermRenderer struct {
BaseURL string
style map[StyleType]*ElementStyle
tableData TableData
BaseURL string
style map[StyleType]*ElementStyle
table TableElement
}
func Render(in string, stylePath string) ([]byte, error) {