@@ -88,17 +88,13 @@ vertCat = foldr vertJoin EmptyImage
8888
8989-- | A Data.Text.Lazy value
9090text :: Attr -> TL.Text -> Image
91−text a txt
92− | TL.length txt == 0 = EmptyImage
93− | otherwise = let displayWidth = safeWcswidth (TL.unpack txt)
94− in HorizText a txt displayWidth (fromIntegral $! TL.length txt)
91+text a txt = let displayWidth = safeWcswidth (TL.unpack txt)
92+ in HorizText a txt displayWidth (fromIntegral $! TL.length txt)
9593
9694-- | A Data.Text value
9795text' :: Attr -> T.Text -> Image
98−text' a txt
99− | T.length txt == 0 = EmptyImage
100− | otherwise = let displayWidth = safeWcswidth (T.unpack txt)
101− in HorizText a (TL.fromStrict txt) displayWidth (T.length txt)
96+text' a txt = let displayWidth = safeWcswidth (T.unpack txt)
97+ in HorizText a (TL.fromStrict txt) displayWidth (T.length txt)
10298
10399-- | an image of a single character. This is a standard Haskell 31-bit character assumed to be in
104100-- the ISO-10646 encoding.
@@ -117,7 +113,6 @@ char a c =
117113-- directly to iso10646String or string.
118114--
119115iso10646String :: Attr -> String -> Image
120−iso10646String _ [] = EmptyImage
121116iso10646String a str =
122117 let displayWidth = safeWcswidth str
123118 in HorizText a (TL.pack str) displayWidth (length str)