Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No line break character breaks fmtTrim #141

Open
eltix opened this issue Aug 30, 2024 · 0 comments
Open

No line break character breaks fmtTrim #141

eltix opened this issue Aug 30, 2024 · 0 comments

Comments

@eltix
Copy link

eltix commented Aug 30, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant