Handbook
Glossary
print-text-tag ( tag -- )
Vocabulary
html
.
parser
.
printer
Inputs
tag
an
object
Outputs
None
Definition
IN:
html.parser.printer
HOOK:
print-text-tag
html-printer
( tag -- )
Methods
USING:
accessors
html.parser.printer
io
sequences
unicode
;
M:
html-prettyprinter
print-text-tag
text>>
[
blank?
]
trim
[
indent
write
"\n"
write
]
unless-empty
;
USING:
accessors
html.parser.printer
io
;
M:
html-printer
print-text-tag
text>>
write
;
USING:
accessors
html.parser.printer
io
kernel
namespaces
;
M:
text-printer
print-text-tag
script?
get
style?
get
or
[
drop
]
[
text>>
collapse-spaces
write
]
if
;