Corrected an issue in replaceVariable that was not adding padding in tokenized expression
This commit is contained in:
parent
ff4a3662e7
commit
57f096247e
@ -73,7 +73,7 @@ module Numeric.MathExpr
|
|||||||
where
|
where
|
||||||
replace c
|
replace c
|
||||||
| isVariable c = pad $ show $ fromJust $ c `lookup` vars
|
| isVariable c = pad $ show $ fromJust $ c `lookup` vars
|
||||||
| otherwise = c
|
| otherwise = pad c
|
||||||
|
|
||||||
isVariable c = isJust $ c `lookup` vars
|
isVariable c = isJust $ c `lookup` vars
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user