mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-10-20 19:07:25 +08:00
1、修复导出文档后缀错误的BUG
2、增加自定义导出文档的头部
This commit is contained in:
@@ -263,6 +263,9 @@ func (m *BookResult) Converter(sessionId string) (ConvertBookResult, error) {
|
||||
Toc: tocList,
|
||||
More: []string{},
|
||||
}
|
||||
if m.Publisher != "" {
|
||||
ebookConfig.Footer = "\"<p style='color:#8E8E8E;font-size:12px;'>本文档由 <span style='text-decoration:none;color:#1abc9c;font-weight:bold;'>"+ m.Publisher +"</span> 生成<span style='float:right'>- _PAGENUM_ -</span></p>\""
|
||||
}
|
||||
|
||||
if tempOutputPath, err = filepath.Abs(tempOutputPath); err != nil {
|
||||
beego.Error("导出目录配置错误:" + err.Error())
|
||||
|
Reference in New Issue
Block a user