Replace tab to space chars in doc

This commit is contained in:
Hajime Hoshi 2015-01-06 23:04:57 +09:00
parent b85bae38e9
commit 5fc8e624f5
2 changed files with 115 additions and 114 deletions

View File

@ -98,6 +98,7 @@ func (e *example) Source() string {
panic(err)
}
str := regexp.MustCompile("(?s)^.*?\n\n").ReplaceAllString(string(b), "")
str = strings.Replace(str, "\t", " ", -1)
return str
}