mirror of
https://github.com/haskell/hackage-server.git
synced 2024-11-28 14:22:38 +03:00
Merge pull request #1256 from Kleidukos/fix-html-tags-rss
Close <p> tags in the revisions RSS feed
This commit is contained in:
commit
458fb775ea
@ -241,7 +241,7 @@ releaseItem users hostURI pkgInfo =
|
||||
title = display (packageName pkgId) ++ " " ++ display (packageVersion pkgId)
|
||||
body = fromShortText $ synopsis (packageDescription (pkgDesc pkgInfo))
|
||||
desc = "<i>Added by " ++ display user ++ ", " ++ showTime time ++ ".</i>"
|
||||
++ if null body then "" else "<p>" ++ body
|
||||
++ if null body then "" else "<p>" ++ body ++ "</p>"
|
||||
user = Users.userIdToName users userId
|
||||
|
||||
(time, userId) = pkgOriginalUploadInfo pkgInfo
|
||||
@ -261,7 +261,7 @@ revisionItem users hostURI pkgInfo =
|
||||
title = display (packageName pkgId) ++ " " ++ display (packageVersion pkgId)
|
||||
body = "Revision #" ++ show revision
|
||||
desc = "<i>Revised by " ++ display user ++ ", " ++ showTime time ++ ".</i>"
|
||||
++ if null body then "" else "<p>" ++ body
|
||||
++ if null body then "" else "<p>" ++ body ++ "</p>"
|
||||
user = Users.userIdToName users userId
|
||||
revision = pkgNumRevisions pkgInfo - 1
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user