Fixed bug in normalizeSpaces: Space:Str "":Space
should compress to Space. git-svn-id: https://pandoc.googlecode.com/svn/trunk@845 788f1e2b-df1e-0410-8736-df70ead52e1b
This commit is contained in:
parent
6cc5f6b199
commit
ec0e6e9941
1 changed files with 1 additions and 0 deletions
|
@ -716,6 +716,7 @@ normalizeSpaces [] = []
|
|||
normalizeSpaces list =
|
||||
let removeDoubles [] = []
|
||||
removeDoubles (Space:Space:rest) = removeDoubles (Space:rest)
|
||||
removeDoubles (Space:(Str ""):Space:rest) = removeDoubles (Space:rest)
|
||||
removeDoubles ((Str ""):rest) = removeDoubles rest
|
||||
removeDoubles (x:rest) = x:(removeDoubles rest)
|
||||
removeLeading (Space:xs) = removeLeading xs
|
||||
|
|
Loading…
Add table
Reference in a new issue