PyF icon indicating copy to clipboard operation
PyF copied to clipboard

No line break character breaks fmtTrim

Open eltix opened this issue 1 year ago • 0 comments

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.

eltix avatar Aug 30 '24 09:08 eltix