From 7c88be3211388f7199d3618ae2adfb2cb075bbda Mon Sep 17 00:00:00 2001 From: blurbird Date: Sat, 9 Mar 2019 17:38:05 +0800 Subject: [PATCH] fix #78 not use short-tags. --- printer/printer.go | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/printer/printer.go b/printer/printer.go index 1a7fc82..3acd73f 100644 --- a/printer/printer.go +++ b/printer/printer.go @@ -43,8 +43,7 @@ func (p *Printer) SetState(s printerState) { func (p *Printer) Print(n node.Node) { _, isRoot := n.(*node.Root) _, isInlineHtml := n.(*stmt.InlineHtml) - _, isEcho := n.(*stmt.Echo) - if p.s == HtmlState && !isInlineHtml && !isRoot && !isEcho { + if p.s == HtmlState && !isInlineHtml && !isRoot { if n.GetFreeFloating().IsEmpty() { io.WriteString(p.w, "