]> gitweb.michael.orlitzky.com - dead/htsn-import.git/commitdiff
Make the text of a news URL optional.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 13 Jan 2014 17:57:49 +0000 (12:57 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 13 Jan 2014 17:57:49 +0000 (12:57 -0500)
src/TSN/XML/News.hs

index a2421e9921d32af8947b6993d63315a2b9e4e3b5..49ff8b7d655ff1c41cc2ef1423b79948e4b8731c 100644 (file)
@@ -39,6 +39,7 @@ import Text.XML.HXT.Core (
   xpOption,
   xpPair,
   xpText,
+  xpText0,
   xpTriple,
   xpWrap )
 
@@ -270,7 +271,7 @@ pickle_message =
               pickle_msg_id
               (xpElem "category" xpText)
               (xpElem "sport" xpText)
-              (xpElem "url" xpText)
+              (xpElem "url" xpText0)
               (xpList pickle_news_team)
               (xpList pickle_location)
               (xpElem "SMS" xpText)