mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
normalize: Don't reduce [Space] to [].
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user