diff --git a/org/html_writer.go b/org/html_writer.go index e9ef2b0..bbf1125 100644 --- a/org/html_writer.go +++ b/org/html_writer.go @@ -14,7 +14,7 @@ import ( // HTMLWriter exports an org document into a html document. type HTMLWriter struct { - stringBuilder + strings.Builder document *Document HighlightCodeBlock func(source, lang string) string htmlEscape bool @@ -57,7 +57,7 @@ func NewHTMLWriter() *HTMLWriter { func (w *HTMLWriter) emptyClone() *HTMLWriter { wcopy := *w - wcopy.stringBuilder = stringBuilder{} + wcopy.Builder = strings.Builder{} return &wcopy } diff --git a/org/org_writer.go b/org/org_writer.go index b57f561..832f9db 100644 --- a/org/org_writer.go +++ b/org/org_writer.go @@ -7,12 +7,10 @@ import ( "unicode/utf8" ) -type stringBuilder = strings.Builder - // OrgWriter export an org document into pretty printed org document. type OrgWriter struct { TagsColumn int - stringBuilder + strings.Builder indent string } @@ -38,7 +36,7 @@ func (w *OrgWriter) After(d *Document) {} func (w *OrgWriter) emptyClone() *OrgWriter { wcopy := *w - wcopy.stringBuilder = strings.Builder{} + wcopy.Builder = strings.Builder{} return &wcopy }