OMath parser: don't group expressions if there's only one.
This commit is contained in:
parent
40602c3df6
commit
cf849443cb
1 changed files with 3 additions and 3 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Reference in a new issue