USING: html.parser html.parser.printer io.streams.string namespaces strings tools.test ; IN: html.parser.printer.tests { " " } [ [ 5 #indentations set 2 tab-width set tabs >string ] with-scope ] unit-test { " href='http://www.google.com' rel='nofollow'" } [ H{ { "href" "http://www.google.com" } { "rel" "nofollow" } } [ print-attributes ] with-string-writer ] unit-test { "

\n Sup dude!\n
\n

\n" } [ "

Sup dude!

" parse-html [ prettyprint-html ] with-string-writer ] unit-test ! Wrongly nested tags { "
\n

\n Sup dude!\n
\n

\n

\n" } [ "

Sup dude!

" parse-html [ prettyprint-html ] with-string-writer ] unit-test