1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 17:32:00 +03:00
juvix/app
Paul Cadman ad3607f104
Fix extra whitespace in text rendering of indented empty lines (#2101)
The prettyprinter library takes care avoid adding whitespace to empty
lines when it is rendering indented text.

See:

7e32c010ec/prettyprinter/src/Prettyprinter/Internal.hs (L1999)

However it only does this for unannotated text.

In our code we were stripping annotations from renderings within
`toTextStream` but we must remove the annotations before calling
`layoutPretty` to get the proper handling of whitespace with
indentations. That's what this PR does.
2023-05-19 11:41:28 +02:00
..
Commands Fix extra whitespace in text rendering of indented empty lines (#2101) 2023-05-19 11:41:28 +02:00
TopCommand Improve error message when input path doesn't exist (#2092) 2023-05-15 11:03:09 +02:00
App.hs Make format command's filepath optional (#2028) 2023-04-27 17:33:08 +02:00
AsmInterpreter.hs Refactor Core datastructures (#1975) 2023-04-04 18:58:05 +02:00
CommonOptions.hs Support more paths (#2000) 2023-04-19 15:56:48 +01:00
Evaluator.hs Normalization by Evaluation (#2038) 2023-05-15 18:01:40 +02:00
GlobalOptions.hs Inlining (#2036) 2023-05-15 17:27:05 +02:00
Main.hs Improve error message when input path doesn't exist (#2092) 2023-05-15 11:03:09 +02:00
TopCommand.hs Add juvix clean to remove project build artifact directory (#2018) 2023-04-21 14:21:31 +02:00