I found that it is very difficult to align column if the row contains value which is a NIL
I try specified column width, however, in the output, NIL seems always has different width than other unicode characters so that always won't align properly. Is there a method to achieve better alignment? (yes I would prefer empty list to print out as NIL)
Thanks.
(progn
(format t "~?" "~5@a ~5@a ~5@a ~5@a ~5@a~%" '(蘋果 () 桔子 () 西瓜))
(format t "~?" "~5@a ~5@a ~5@a ~5@a ~5@a~%" '(() 茄子 () 菠菜 () 苦瓜)))
OUTPUT (Column not aligned even column width has already been specified
蘋果 NIL 桔子 NIL 西瓜
NIL 茄子 NIL 菠菜 NIL
Would be expecting OUTPUT aligned like below (with NIL occupy the same width as specified) :
蘋果 NIL 桔子 NIL 西瓜
NIL 茄子 NIL 菠菜 NIL