Skip to content

Commit

Permalink
fix rss xml bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zachary822 committed Nov 28, 2023
1 parent e854343 commit 4988fef
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/Lib/Rss.hs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ pubDate :: RSS -> RSS
pubDate = Parent "pubDate" "<pubDate" "</pubDate>"

atomLink :: RSS
atomLink = Leaf "atom:link" "<atom:link" ">" ()
atomLink = Leaf "atom:link" "<atom:link" "/>" ()

item :: RSS -> RSS
item = Parent "item" "<item" "</item>"
Expand Down
4 changes: 2 additions & 2 deletions app/Lib/Rss/Attributes.hs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import Text.Blaze
import Text.Blaze.Internal

href :: AttributeValue -> Attribute
href = attribute "href" "href=\""
href = attribute "href" " href=\""

rel :: AttributeValue -> Attribute
rel = attribute "rel" "rel=\""
rel = attribute "rel" " rel=\""

0 comments on commit 4988fef

Please sign in to comment.