prettyprint.sections: don't create empty strings with zero indent.
parent
e8cef24486
commit
3018010f67
|
@ -42,7 +42,8 @@ M: maybe vocabulary-name
|
||||||
: line-limit? ( -- ? )
|
: line-limit? ( -- ? )
|
||||||
line-limit get dup [ pprinter get line-count>> <= ] when ;
|
line-limit get dup [ pprinter get line-count>> <= ] when ;
|
||||||
|
|
||||||
: do-indent ( -- ) pprinter get indent>> CHAR: \s <string> write ;
|
: do-indent ( -- )
|
||||||
|
pprinter get indent>> [ CHAR: \s <string> write ] unless-zero ;
|
||||||
|
|
||||||
: fresh-line ( n -- )
|
: fresh-line ( n -- )
|
||||||
pprinter get 2dup last-newline>> = [
|
pprinter get 2dup last-newline>> = [
|
||||||
|
|
Loading…
Reference in New Issue