Jasin Colegrove
01/06/2022, 5:22 PMaddparagraph("") it requires the {}
is there a way around that?Youssef Shoaib [MOD]
01/06/2022, 5:23 PMinline fun Document.addParagraph(title: String, block: Paragraph.() -> Unit = {}) {
add(Paragraph(title).apply(block))
}
Jasin Colegrove
01/06/2022, 5:24 PM