section

fun section(title: String? = null, block: ReportBuilder.() -> Unit)(source)

Creates a nested section with the given title and appends it to this builder. The block is applied to a new ReportBuilder scoped to the section.

Sections may be nested to any depth. Renderers track depth and promote heading levels automatically.

Parameters

title

optional section title; null produces an untitled grouping

block

DSL block executed in the context of the new section's builder