From 2db8b655df94bf33dc0e376b7df6d38109589b0b Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 11 Aug 2022 23:52:50 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E5=AF=BC=E5=87=BA=20PDF=E3=80=81HTML?= =?UTF-8?q?=20=E5=92=8C=20Word=20=E6=97=B6=E6=9C=AA=E7=A7=BB=E9=99=A4?= =?UTF-8?q?=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84=E6=96=87=E4=BB=B6=E5=90=8D?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7=20https://github.com/siyuan-note/siyuan/issu?= =?UTF-8?q?es/5614?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/export.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/export.go b/kernel/model/export.go index 01d48ff22..1a597aa2a 100644 --- a/kernel/model/export.go +++ b/kernel/model/export.go @@ -204,6 +204,7 @@ func ExportMarkdownHTML(id, savePath string, docx bool) (name, dom string) { tree = exportTree(tree, true) name = path.Base(tree.HPath) + name = util.FilterFileName(name) // 导出 PDF、HTML 和 Word 时未移除不支持的文件名符号 https://github.com/siyuan-note/siyuan/issues/5614 if err := os.MkdirAll(savePath, 0755); nil != err { logging.LogErrorf("mkdir [%s] failed: %s", savePath, err) @@ -308,6 +309,7 @@ func ExportHTML(id, savePath string, pdf bool) (name, dom string) { tree = exportTree(tree, true) name = path.Base(tree.Path) + name = util.FilterFileName(name) // 导出 PDF、HTML 和 Word 时未移除不支持的文件名符号 https://github.com/siyuan-note/siyuan/issues/5614 if err := os.MkdirAll(savePath, 0755); nil != err { logging.LogErrorf("mkdir [%s] failed: %s", savePath, err)