Muse writer: remove empty Str from the beginning of inline lists during normalization

This commit is contained in:
Alexander Krotov 2018-03-07 16:25:15 +03:00
parent 1b1b6f02d5
commit 39b31ef3cb

View file

@ -301,6 +301,8 @@ preprocessInlineList (x:xs) = (x:) <$> preprocessInlineList xs
preprocessInlineList [] = return []
normalizeInlineList :: [Inline] -> [Inline]
normalizeInlineList (Str "" : xs)
= normalizeInlineList xs
normalizeInlineList (x : Str "" : xs)
= normalizeInlineList (x:xs)
normalizeInlineList (Str x1 : Str x2 : xs)