typstfmt icon indicating copy to clipboard operation
typstfmt copied to clipboard

if then else on one line

Open ondohotola opened this issue 1 year ago • 1 comments

Hi, if I do something like

if row in (0, 1) {
      myred 
   } 
   else if calc.odd(row) { myblue } 
   else { none },

tysptfmt makes something like

if row in (0, 1) { myred } else if calc.odd(row) { myblue } else { none },

out of it, ie puts it into a single (long) line, which I find difficult to read

ondohotola avatar Sep 10 '23 21:09 ondohotola