From 6f9367941d4f3c96ad0603d0feb222a8cc7ea3ec Mon Sep 17 00:00:00 2001 From: Minho Date: Fri, 26 May 2017 18:30:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=87=BApdf?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=AF=86=E5=88=AB=E4=B8=8A=E4=BC=A0=E7=9A=84?= =?UTF-8?q?=E5=9B=BE=E7=89=87=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controllers/document.go | 2 ++ views/document/export.tpl | 8 ++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/controllers/document.go b/controllers/document.go index c8cdc973..c49353ea 100644 --- a/controllers/document.go +++ b/controllers/document.go @@ -1083,6 +1083,8 @@ func RecursiveFun(parent_id int, prefix, dpath string, c *DocumentController, bo c.Abort("500") } //beego.Info(fpath,html) + html = strings.Replace(html," {{if eq .Model.Editor "markdown"}} + + {{else}} {{end}} - - -