html.parser.printer: use with-variables instead of with-scope.

char-rename
John Benediktsson 2016-11-10 15:38:47 -08:00
parent 5a0e583279
commit c1cdc2318f
1 changed files with 5 additions and 6 deletions

View File

@ -93,12 +93,11 @@ SYMBOL: tab-width
SYMBOL: #indentations
: prettyprint-html ( vector -- )
[
T{ html-prettyprinter } html-printer set
2 tab-width set
0 #indentations set
print-tags
] with-scope ;
H{
{ html-printer T{ html-prettyprinter } }
{ tab-width 2 }
{ #indentations 0 }
} [ print-tags ] with-variables ;
: tabs ( -- vseq )
tab-width get #indentations get 0 max * CHAR: \s <repetition> ;