Allow multiline descriptions

This commit is contained in:
Las Zenow 2013-05-31 00:34:11 +02:00
parent 155144d86e
commit 424a0fad8e
3 changed files with 11 additions and 7 deletions

View file

@ -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, "&amp;", "&", -1)