diff --git a/Text/HeX/Math.hs b/Text/HeX/Math.hs index 37e357f..f253933 100644 --- a/Text/HeX/Math.hs +++ b/Text/HeX/Math.hs @@ -89,4 +89,4 @@ arrayLine expr = sepBy1 (mconcat <$> many (notFollowedBy endLine >> expr)) (char '&') arrayLines :: HeX Doc -> HeX [[Doc]] -arrayLines expr = sepBy1 (arrayLine expr) endLine +arrayLines expr = sepEndBy1 (arrayLine expr) endLine