diff --git a/Text/HTML/TagStream/ByteString.hs b/Text/HTML/TagStream/ByteString.hs
--- a/Text/HTML/TagStream/ByteString.hs
+++ b/Text/HTML/TagStream/ByteString.hs
@@ -110,7 +110,6 @@
         TagTypeNormal -> do
             name <- takeTill (in3 ('<','>','/') ||. isSpace)
             (as, close) <- attrs
-            skipSpace
             return $ TagOpen name as close
 
 {--
diff --git a/Text/HTML/TagStream/Text.hs b/Text/HTML/TagStream/Text.hs
--- a/Text/HTML/TagStream/Text.hs
+++ b/Text/HTML/TagStream/Text.hs
@@ -128,7 +128,6 @@
         TagTypeNormal -> do
             name <- takeTill (in3 ('<','>','/') ||. isSpace)
             (as, close) <- attrs
-            skipSpace
             return $ TagOpen name as close
 
 {--
diff --git a/tagstream-conduit.cabal b/tagstream-conduit.cabal
--- a/tagstream-conduit.cabal
+++ b/tagstream-conduit.cabal
@@ -1,5 +1,5 @@
 Name:                tagstream-conduit
-Version:             0.5.4
+Version:             0.5.4.1
 Synopsis:            streamlined html tag parser
 Description:
     Tag-stream is a library for parsing HTML//XML to a token stream.
@@ -36,7 +36,7 @@
                      , bytestring
                      , text
                      , case-insensitive
-                     , transformers >= 0.3
+                     , transformers >= 0.2
                      , conduit >= 0.5 && < 1.1
                      , attoparsec
                      , blaze-builder
diff --git a/tests/Tests.hs b/tests/Tests.hs
--- a/tests/Tests.hs
+++ b/tests/Tests.hs
@@ -201,6 +201,10 @@
     , [TagOpen "script" [] False, Text "// '\r\n", TagClose "script"]
     )
   -- }}}
+  -- issue 10 https://github.com/yihuang/tagstream-conduit/issues/10
+  , ( "<foo>  hello</foo>"
+    , [TagOpen "foo" [] False, Text "  hello", TagClose "foo"]
+    )
   ]
 
 testChar :: Gen Char
