Return a *HTMLRenderer from NewHTMLRenderer

Interfaces should be satisfied implicitly.
This commit is contained in:
Pierre Neidhardt 2016-07-01 13:25:26 +02:00
parent 37ffc1c86a
commit 2e53c20b2f

View File

@ -124,7 +124,7 @@ func (w *HTMLWriter) Newline() {
// NewHTMLRenderer creates and configures an HTMLRenderer object, which
// satisfies the Renderer interface.
func NewHTMLRenderer(params HTMLRendererParameters) Renderer {
func NewHTMLRenderer(params HTMLRendererParameters) *HTMLRenderer {
// configure the rendering engine
closeTag := htmlClose
if params.Flags&UseXHTML != 0 {