equal
deleted
inserted
replaced
222 output_symbol(ctrl) |
222 output_symbol(ctrl) |
223 } |
223 } |
224 |
224 |
225 def output(text: String): String = { |
225 def output(text: String): String = { |
226 val control_blocks = check_control_blocks(List(XML.Text(text))) |
226 val control_blocks = check_control_blocks(List(XML.Text(text))) |
227 Library.make_string(output(_, text, |
227 Library.string_builder() { builder => |
228 control_blocks = control_blocks, hidden = false, permissive = true)) |
228 output(builder, text, control_blocks = control_blocks, hidden = false, permissive = true) |
|
229 } |
229 } |
230 } |
230 |
231 |
231 |
232 |
232 /* output XML as HTML */ |
233 /* output XML as HTML */ |
233 |
234 |
257 } |
258 } |
258 output_body(xml) |
259 output_body(xml) |
259 } |
260 } |
260 |
261 |
261 def output(body: XML.Body, hidden: Boolean, structural: Boolean): String = |
262 def output(body: XML.Body, hidden: Boolean, structural: Boolean): String = |
262 Library.make_string(output(_, body, hidden, structural), capacity = XML.text_length(body) * 2) |
263 Library.string_builder(hint = XML.text_length(body) * 2) { builder => |
|
264 output(builder, body, hidden, structural) |
|
265 } |
263 |
266 |
264 def output(tree: XML.Tree, hidden: Boolean, structural: Boolean): String = |
267 def output(tree: XML.Tree, hidden: Boolean, structural: Boolean): String = |
265 output(List(tree), hidden, structural) |
268 output(List(tree), hidden, structural) |
266 |
269 |
267 |
270 |