draw-cons-tree icon indicating copy to clipboard operation
draw-cons-tree copied to clipboard

Do not draw unnecessary spaces

Open phoe opened this issue 3 years ago • 0 comments

CL-USER> (with-output-to-string (*standard-output*) 
           (draw-cons-tree:draw-tree '(1)))
"[o|/]
 |      
 1      
"

CL-USER> (substitute #\_ #\Space *)
"[o|/]
_|______
_1______
"

The trailing underscores above need not be drawn. (Probably same with the trailing newline.)

phoe avatar Feb 04 '22 15:02 phoe