Skip to content

Commit 458fb77

Browse files
authored
Merge pull request #1256 from Kleidukos/fix-html-tags-rss
Close <p> tags in the revisions RSS feed
2 parents 5662ff4 + b69b5d6 commit 458fb77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Distribution/Server/Pages/Recent.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ releaseItem users hostURI pkgInfo =
241241
title = display (packageName pkgId) ++ " " ++ display (packageVersion pkgId)
242242
body = fromShortText $ synopsis (packageDescription (pkgDesc pkgInfo))
243243
desc = "<i>Added by " ++ display user ++ ", " ++ showTime time ++ ".</i>"
244-
++ if null body then "" else "<p>" ++ body
244+
++ if null body then "" else "<p>" ++ body ++ "</p>"
245245
user = Users.userIdToName users userId
246246

247247
(time, userId) = pkgOriginalUploadInfo pkgInfo
@@ -261,7 +261,7 @@ revisionItem users hostURI pkgInfo =
261261
title = display (packageName pkgId) ++ " " ++ display (packageVersion pkgId)
262262
body = "Revision #" ++ show revision
263263
desc = "<i>Revised by " ++ display user ++ ", " ++ showTime time ++ ".</i>"
264-
++ if null body then "" else "<p>" ++ body
264+
++ if null body then "" else "<p>" ++ body ++ "</p>"
265265
user = Users.userIdToName users userId
266266
revision = pkgNumRevisions pkgInfo - 1
267267

0 commit comments

Comments
 (0)