format long desc as a dl in rss
This commit is contained in:
parent
a301efa521
commit
e1718bb861
1 changed files with 2 additions and 2 deletions
|
@ -79,7 +79,7 @@ makeItem root prefix nsfw path i@(Info {title, artist}) = [b|@4
|
||||||
makeDesc :: Desc -> Builder
|
makeDesc :: Desc -> Builder
|
||||||
makeDesc NoDesc = ""
|
makeDesc NoDesc = ""
|
||||||
makeDesc (TextDesc txt) = [b|$txt|]
|
makeDesc (TextDesc txt) = [b|$txt|]
|
||||||
makeDesc (LongDesc fs) = [b|$fields|]
|
makeDesc (LongDesc fs) = [b|<dl>$fields</dl>|]
|
||||||
where
|
where
|
||||||
fields = map makeField fs
|
fields = map makeField fs
|
||||||
makeField (DescField {name, text}) = [b|<b>$name</b>: $text|]
|
makeField (DescField {name, text}) = [b|<dt>$name <dd>$text|]
|
||||||
|
|
Loading…
Reference in a new issue