Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2026-01-20 17:11:05 +08:00
commit bacd022f3d
7 changed files with 8 additions and 3 deletions

View file

@ -67,3 +67,4 @@ extraResources:
to: "pandoc.zip"
- from: "pandoc/pandoc-resources"
to: "pandoc-resources"
filter: "!**/{.DS_Store}"

View file

@ -67,3 +67,4 @@ extraResources:
to: "pandoc.zip"
- from: "pandoc/pandoc-resources"
to: "pandoc-resources"
filter: "!**/{.DS_Store}"

View file

@ -71,3 +71,4 @@ extraResources:
to: "pandoc.zip"
- from: "pandoc/pandoc-resources"
to: "pandoc-resources"
filter: "!**/{.DS_Store}"

View file

@ -68,3 +68,4 @@ extraResources:
to: "pandoc.zip"
- from: "pandoc/pandoc-resources"
to: "pandoc-resources"
filter: "!**/{.DS_Store}"

View file

@ -74,3 +74,4 @@ extraResources:
to: "pandoc.zip"
- from: "pandoc/pandoc-resources"
to: "pandoc-resources"
filter: "!**/{.DS_Store}"

View file

@ -513,7 +513,7 @@ func exportDocx(c *gin.Context) {
fullPath, err := model.ExportDocx(id, savePath, removeAssets, merge)
if err != nil {
ret.Code = -1
ret.Code = 1
ret.Msg = err.Error()
ret.Data = map[string]interface{}{"closeTimeout": 7000}
return

View file

@ -1272,9 +1272,9 @@ func subscribeConfEvents() {
params += " \"" + util.PandocTemplatePath + "\""
Conf.Export.PandocParams = strings.TrimSpace(params)
}
logging.LogInfof("pandoc params set to [%s]", Conf.Export.PandocParams)
logging.LogInfof("pandoc template [%s], color filter [%s]", util.PandocTemplatePath, util.PandocColorFilterPath)
logging.LogInfof("pandoc resources [%s, %s]", util.PandocTemplatePath, util.PandocColorFilterPath)
Conf.Save()
})
}