From f325a08e57e78a66bb3fc56b8e26e33468b7107c Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Mon, 24 Jun 2024 14:45:38 -0400 Subject: [PATCH] Make `core:text/table` examples more complete They should be completely copy-and-paste friendly now, without the assumption of someone using `using table`. --- core/text/table/doc.odin | 100 +++++++++++++++++++++++---------------- 1 file changed, 60 insertions(+), 40 deletions(-) diff --git a/core/text/table/doc.odin b/core/text/table/doc.odin index 952412f82..8bcd04ceb 100644 --- a/core/text/table/doc.odin +++ b/core/text/table/doc.odin @@ -3,16 +3,25 @@ The package `table` implements plain-text/markdown/HTML/custom rendering of tabl **Custom rendering example:** - tbl := init(&Table{}) - padding(tbl, 0, 1) - row(tbl, "A_LONG_ENUM", "= 54,", "// A comment about A_LONG_ENUM") - row(tbl, "AN_EVEN_LONGER_ENUM", "= 1,", "// A comment about AN_EVEN_LONGER_ENUM") - build(tbl, table.unicode_width_proc) - for row in 0..