Skip to content

Commit

Permalink
In the wiki title replace tab with a space (#371)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bwko authored and lunny committed Dec 11, 2016
1 parent cbcb436 commit abcd39f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions models/wiki.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ func ToWikiPageURL(name string) string {
// that are not belong to wiki repository.
func ToWikiPageName(urlString string) string {
name, _ := url.QueryUnescape(strings.Replace(urlString, "-", " ", -1))
name = strings.Replace(name, "\t", " ", -1)
return strings.Replace(strings.TrimLeft(name, "./"), "/", " ", -1)
}

Expand Down

0 comments on commit abcd39f

Please sign in to comment.