mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-24 02:20:13 +01:00
🐛 Pandoc is not initialized in some cases Fix https://github.com/siyuan-note/siyuan/issues/8533
This commit is contained in:
parent
e93c62e49f
commit
a515a4f992
7 changed files with 33 additions and 5 deletions
|
|
@ -333,7 +333,11 @@ func Preview(id string) string {
|
|||
|
||||
func ExportDocx(id, savePath string, removeAssets, merge bool) (err error) {
|
||||
if !util.IsValidPandocBin(Conf.Export.PandocBin) {
|
||||
return errors.New(Conf.Language(115))
|
||||
Conf.Export.PandocBin = util.PandocBinPath
|
||||
Conf.Save()
|
||||
if !util.IsValidPandocBin(Conf.Export.PandocBin) {
|
||||
return errors.New(Conf.Language(115))
|
||||
}
|
||||
}
|
||||
|
||||
tmpDir := filepath.Join(util.TempDir, "export", gulu.Rand.String(7))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue