Corrected an issue in replaceVariable that was not adding padding in tokenized expression

This commit is contained in:
Leonidas Boulougaris 2022-07-14 18:52:29 +03:00 committed by Mahdi Dibaiee
parent ff4a3662e7
commit 57f096247e

View File

@ -73,7 +73,7 @@ module Numeric.MathExpr
where
replace c
| isVariable c = pad $ show $ fromJust $ c `lookup` vars
| otherwise = c
| otherwise = pad c
isVariable c = isJust $ c `lookup` vars