Whitespace is stripped from the beginning of text #10

snoyberg opened this Issue Oct 20, 2013 · 3 comments


None yet
2 participants

snoyberg commented Oct 20, 2013

Consider the following example:

{-# LANGUAGE OverloadedStrings #-}
import Text.HTML.TagStream.Text
import Data.Conduit
import qualified Data.Conduit.List as CL

input = "<foo>  hello</foo>"

main = yield input $$ tokenStream =$ CL.mapM_ print

I would have expected the Text value to be " hello", but instead the leading whitespace is stripped down to "hello". Would it be possible to make this adjustment?

yihuang closed this in 0e23e8e Oct 21, 2013


snoyberg commented Oct 21, 2013

Thanks! Would it be possible to get this update onto Hackage?


yihuang commented Oct 22, 2013

I forgets my hackage account password, and the password reset system don't work for now. You can upload it yourself, thanks.


snoyberg commented Oct 22, 2013

Done, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment