Allow multiline descriptions
This commit is contained in:
parent
155144d86e
commit
424a0fad8e
3 changed files with 11 additions and 7 deletions
3
store.go
3
store.go
|
@ -87,7 +87,8 @@ func parseAuthr(creator []string) []string {
|
|||
}
|
||||
|
||||
func parseDescription(description []string) string {
|
||||
str := cleanStr(strings.Join(description, ", "))
|
||||
str := cleanStr(strings.Join(description, "\n"))
|
||||
str = strings.Replace(str, "</p>", "\n", -1)
|
||||
exp, _ := regexp.Compile("<[^>]*>")
|
||||
str = exp.ReplaceAllString(str, "")
|
||||
str = strings.Replace(str, "&", "&", -1)
|
||||
|
|
Reference in a new issue