modern.out: only write last space when there's a delimiter.

locals-and-roots
Doug Coleman 2016-06-24 10:04:51 -07:00
parent 1b7de6a692
commit 342b8f5ef6
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ B
[ seq>> 1 swap nth write-whitespace ]
[ delimiter>> write ]
[ payload>> [ write-literal ] each ] ! don't need write-whitespace here, the recursion does it
[ seq>> 3 swap ?nth [ lexed-underlying [ write-whitespace ] when* ] when* ]
[ [ seq>> 3 swap ?nth ] [ closing-tag>> ] bi 2dup and [ drop [ lexed-underlying [ write-whitespace ] when* ] when* ] [ 2drop ] if ]
[ closing-tag>> [ write ] when* ]
} cleave ;