aboutsummaryrefslogtreecommitdiff
path: root/pkg/markup/markdown.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-04-05 09:05:40 -0400
committerUnknwon <u@gogs.io>2017-04-05 09:05:40 -0400
commit6fbb984ebf4f0d6804f0f83e6edb12ef0bb9a570 (patch)
tree81f08210cb3553370795ec11c731d37bb3590122 /pkg/markup/markdown.go
parentba151eda0a8b6eec2cb45f01fcbc8aef7ad5a06f (diff)
Refactoring: rename pkg/base -> pkg/tool
Diffstat (limited to 'pkg/markup/markdown.go')
-rw-r--r--pkg/markup/markdown.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/markup/markdown.go b/pkg/markup/markdown.go
index 3414a58c..fc2f54c6 100644
--- a/pkg/markup/markdown.go
+++ b/pkg/markup/markdown.go
@@ -14,7 +14,7 @@ import (
"github.com/russross/blackfriday"
- "github.com/gogits/gogs/pkg/base"
+ "github.com/gogits/gogs/pkg/tool"
"github.com/gogits/gogs/pkg/setting"
)
@@ -72,7 +72,7 @@ func (r *MarkdownRenderer) AutoLink(out *bytes.Buffer, link []byte, kind int) {
if j == -1 {
j = len(m)
}
- out.WriteString(fmt.Sprintf(` <code><a href="%s">%s</a></code>`, m, base.ShortSha(string(m[i+7:j]))))
+ out.WriteString(fmt.Sprintf(` <code><a href="%s">%s</a></code>`, m, tool.ShortSha(string(m[i+7:j]))))
return
}