ansi-wl-pprint
ansi-wl-pprint copied to clipboard
Add priority to soft-breaks
e.g.:
in
"a" </> "+" </> + "b" </> " = " </> "c" </> "/" </> "d"
one of the soft breaks around equals sign should have higher priority, so that
a + b
= c / d
or
a + b =
c / d
is printed instead of
a + b = c
/ d
IMO, the best looking solution would be
("a" </> "+" </> + "b") </> " = " </> ("c" </> "/" </> "d")
which should mean that both spaces around equals sign have high priority, but soft breaks within expression can still trigger nevertheless.
please migrate to https://github.com/ekmett/ansi-wl-pprint/issues