Make great documentation goal 1.2, and plan the README's reorganisation and the nested-template gaps #33

Open
lilleman wants to merge 966 commits from worktree-todo-relative-dates-exact-counts into main
Showing only changes of commit 16d6497396 - Show all commits
+2 -2
View File
@@ -81,7 +81,7 @@ func renderRoot(s *generatorState, t *template, trace renderTrace) {
draws := renderDraws{trace: trace}
sc := renderScope{draws: &draws}
switch {
case t.site.row == formatRow:
case t.site.isFormat():
tbl := t.site.table
render(s, tbl, sc)
for r := 0; r < tbl.rowCount(); r++ {
@@ -100,7 +100,7 @@ func renderRoot(s *generatorState, t *template, trace renderTrace) {
func renderRecordRoot(s *generatorState, t *template, columns []Column, trace renderTrace) {
draws := renderDraws{trace: trace}
sc := renderScope{draws: &draws}
if t.site.row == formatRow {
if t.site.isFormat() {
t.site.table.drawIn(s, &sc.groupDraws().pins)
}
renderRecord(s, t, columns, sc)