Writers: treat SoftBreak as space for stripping
In Writers.Shared, we strip leading and trailing spaces for display math. Since SoftBreak's are treated as spaces, we should strip those too.
This commit is contained in:
parent
3429fa6438
commit
2c62f0e122
1 changed files with 1 additions and 0 deletions
|
@ -148,6 +148,7 @@ isDisplayMath _ = False
|
|||
stripLeadingTrailingSpace :: [Inline] -> [Inline]
|
||||
stripLeadingTrailingSpace = go . reverse . go . reverse
|
||||
where go (Space:xs) = xs
|
||||
go (SoftBreak:xs) = xs
|
||||
go xs = xs
|
||||
|
||||
-- Put display math in its own block (for ODT/DOCX).
|
||||
|
|
Loading…
Add table
Reference in a new issue