OMath parser: don't group expressions if there's only one.

This commit is contained in:
Jesse Rosenthal 2014-08-07 22:55:03 -04:00
parent 40602c3df6
commit cf849443cb

View file

@ -607,10 +607,10 @@ oMathRunStyleToTextType mrPr
Just $ TM.TextBoldItalic
| otherwise = Nothing
baseToExp :: Base -> TM.Exp
baseToExp b = TM.EGrouped $ baseToExp' b
baseToExp b = case baseToExp' b of
(e : []) -> e
exps -> TM.EGrouped exps
-- an ungrouped version of baseToExp
baseToExp' :: Base -> [TM.Exp]