Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Whitespace is stripped from the beginning of text #10

snoyberg opened this Issue · 3 comments

2 participants


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 yihuang closed this in 0e23e8e

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


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


Done, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.