fn assemble(head: &str, body: &str, close: bool) -> String
Joins the reopened head, body, and an optional closing fence into a segment.