fix:修复导出PDF代码折叠的BUG

This commit is contained in:
lifei6671
2018-08-24 15:05:15 +08:00
parent 9cacffc82c
commit 99643b0712
4 changed files with 35 additions and 4 deletions

View File

@@ -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()
}