mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-14 19:18:06 +01:00
🎨 Improve pandoc export
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
cf392b04ae
commit
b59c6fda43
2 changed files with 21 additions and 20 deletions
|
|
@ -812,8 +812,9 @@ func ExportDocx(id, savePath string, removeAssets, merge bool) (fullPath string,
|
|||
pandoc.Stdin = bytes.NewBufferString(content)
|
||||
output, err := pandoc.CombinedOutput()
|
||||
if err != nil {
|
||||
argStr := strings.Join(args, " ")
|
||||
msg := gulu.DecodeCmdOutput(output)
|
||||
logging.LogErrorf("export docx failed: %s", msg)
|
||||
logging.LogErrorf("export docx [%s] failed: %s", argStr, msg)
|
||||
err = errors.New(fmt.Sprintf(Conf.Language(14), msg))
|
||||
return
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue