PyF
PyF copied to clipboard
No line break character breaks fmtTrim
This Haskell code
[fmtTrim|
Cannot convert formula {pretty rhs} which has unit {pretty right_unit} to\
unit {pretty left_unit} for they have different dimensions|]
is printed out as
Cannot convert formula 2.0 * exponent(unit=s, value=1.0) which has unit dimensionless s to unit dimensionless for they have different dimensions
Notice the large space between "to" and "unit" which corresponds to the indentation of line 3 of the Haskell code and which shouldn't be there per fmtTrim's semantics.