lukeed/tidyPublic

fix: stable comments in ternary

A block comment on its own line before a ternary's branch printed
after : with a line break that broke the ternary; the next formatting
found it on the : line and joined the ternary. tidy prints that fixed
point in one pass (js-stable-output).
LELuke Edwards authored
2762356Patch
Parent81ce512
2 files changed+31-2
StackedSplit
crates/tidy/src/js/utils/conditional.rs+23 −2
crates/tidy/tests/js.rs+8 −0