From ec6ef10964fd605d7a911fee47bc3cc0a031bdaa Mon Sep 17 00:00:00 2001 From: Ben Bridle Date: Wed, 8 Jan 2025 14:15:41 +1300 Subject: Wrap table sections with Each section of a table is now wrapped with , instead of just the entire table. --- src/generate_html.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/generate_html.rs') diff --git a/src/generate_html.rs b/src/generate_html.rs index 05456d0..84c3bdb 100644 --- a/src/generate_html.rs +++ b/src/generate_html.rs @@ -125,8 +125,8 @@ pub fn document_to_html(document: &MarkdownDocument, page: &Page, website: &Webs tag!("th", column.name); }) ); - wrap!("tbody", for section in &table.sections { - for row in section { + for section in &table.sections { + wrap!("tbody", for row in section { wrap!("tr", for (column, cell) in std::iter::zip(&table.columns, row) { let text_raw = line_to_html!(cell); let text = match text_raw.as_str() { @@ -148,8 +148,8 @@ pub fn document_to_html(document: &MarkdownDocument, page: &Page, website: &Webs }; html!("{}", class, text); }) - } - }); + }) + }; }) } } -- cgit v1.2.3-70-g09d2