From: Michael Orlitzky Date: Sat, 14 Jul 2012 03:02:03 +0000 (-0400) Subject: Fix the duplicated full story body bug. X-Git-Tag: v0.0.1~10 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=8088bcb0959055f95b8363f83fba808c8dd0094e;p=dead%2Flwn-epub.git Fix the duplicated full story body bug. --- diff --git a/src/LWN/Article.hs b/src/LWN/Article.hs index 47e3651..aa26790 100644 --- a/src/LWN/Article.hs +++ b/src/LWN/Article.hs @@ -15,9 +15,6 @@ import Test.Framework (Test, testGroup) import Test.Framework.Providers.HUnit (testCase) import Text.Regex.Posix ((=~)) import Text.XML.HXT.Core ( - (>>>), - arr, - hread, selem, none, runX, @@ -67,8 +64,9 @@ instance XML Byline where to_xml (Byline Nothing) = none instance XML BodyHtml where - to_xml (BodyHtml bh) = - (arr $ const bh) >>> hread + -- Don't question this. I tried to do it correctly and + -- all hell broke loose. + to_xml (BodyHtml bh) = txt bh data Article = Article { title :: Title, byline :: Byline,