From c1cdc2318fd8cf1802d4e777c729bb71eeaaece8 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 10 Nov 2016 15:38:47 -0800 Subject: [PATCH] html.parser.printer: use with-variables instead of with-scope. --- extra/html/parser/printer/printer.factor | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/extra/html/parser/printer/printer.factor b/extra/html/parser/printer/printer.factor index c3656f8c5e..cfea80feca 100644 --- a/extra/html/parser/printer/printer.factor +++ b/extra/html/parser/printer/printer.factor @@ -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 ; -- 2.34.1