X-Git-Url: http://gitweb.michael.orlitzky.com/?p=dead%2Flwn-epub.git;a=blobdiff_plain;f=src%2FLWN%2FPage.hs;fp=src%2FLWN%2FPage.hs;h=ccc2590d64b0dddf94dcf85a62a650168549763d;hp=3dccf466fea98f49a8ee42dcf44a2cdebe66a42c;hb=ce53d0d1ff76cc45f1f66504976a0549999677c0;hpb=68bab2c1cc272e99c94447afb93678e2b4d4bc72 diff --git a/src/LWN/Page.hs b/src/LWN/Page.hs index 3dccf46..ccc2590 100644 --- a/src/LWN/Page.hs +++ b/src/LWN/Page.hs @@ -58,6 +58,7 @@ import LWN.XHTML ( is_image, preprocess, remove_byline, + remove_full_story_paragraphs, remove_title, to_xhtml, to_xml, @@ -196,7 +197,8 @@ parse cfg xml = do story_map <- download_full_stories cfg xml return $ xml >>> insert_full_stories story_map else do - return xml + -- Get rid of them if we don't want them. + return $ xml >>> remove_full_story_paragraphs let clean_xml = fs_xml >>> preprocess image_map <- download_images clean_xml