normalize: Don't reduce [Space] to [].

This commit is contained in:
John MacFarlane 2010-12-26 12:01:33 -08:00
parent c912288eda
commit 220fe5fab8

View file

@ -295,10 +295,7 @@ consolidateInlines (Str x : ys) =
isStr _ = False
fromStr (Str z) = z
fromStr _ = error "consolidateInlines - fromStr - not a Str"
consolidateInlines (Space : ys) =
if null rest
then []
else Space : rest
consolidateInlines (Space : ys) = Space : rest
where isSpace Space = True
isSpace _ = False
rest = consolidateInlines $ dropWhile isSpace ys