normalize: Don't reduce [Space] to [].
This commit is contained in:
parent
c912288eda
commit
220fe5fab8
1 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue