mirror of
https://github.com/mindoc-org/mindoc.git
synced 2025-09-19 10:08:03 +08:00
fix:修复导出PDF代码折叠的BUG
This commit is contained in:
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/lifei6671/mindoc/commands"
|
||||
"github.com/lifei6671/mindoc/conf"
|
||||
"github.com/lifei6671/mindoc/controllers"
|
||||
"path/filepath"
|
||||
)
|
||||
|
||||
type Daemon struct {
|
||||
@@ -51,7 +52,13 @@ func (d *Daemon) Run() {
|
||||
|
||||
beego.ErrorController(&controllers.ErrorController{})
|
||||
|
||||
fmt.Printf("MinDoc version => %s\nbuild time => %s\nstart directory => %s\n%s\n", conf.VERSION, conf.BUILD_TIME, os.Args[0], conf.GO_VERSION)
|
||||
f,err := filepath.Abs(os.Args[0])
|
||||
|
||||
if err != nil {
|
||||
f = os.Args[0]
|
||||
}
|
||||
|
||||
fmt.Printf("MinDoc version => %s\nbuild time => %s\nstart directory => %s\n%s\n", conf.VERSION, conf.BUILD_TIME, f, conf.GO_VERSION)
|
||||
|
||||
beego.Run()
|
||||
}
|
||||
|
Reference in New Issue
Block a user