From: Scott Worley Date: Thu, 26 Sep 2024 04:14:12 +0000 (-0700) Subject: Tweak appearance of spacer rows X-Git-Tag: v0.3.0~3 X-Git-Url: http://git.scottworley.com/tablify/commitdiff_plain/529cbaa2f61a4318ea6e6982f7ff08c44cbcf1ab?ds=inline;hp=14a039db4c850c41ca1cd72c692afe59d6d1347b Tweak appearance of spacer rows --- diff --git a/src/lib.rs b/src/lib.rs index 744dc66..fbadb2a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -18,6 +18,7 @@ const HEADER: &str = r#" /* h/t https://wabain.github.io/2019/10/13/css-rotated-table-header.html */ th, td { white-space: nowrap; } th { text-align: left; font-weight: normal; } + th.spacer_row { height: .3em; } table { border-collapse: collapse } tr.key > th { height: 10em; vertical-align: bottom; line-height: 1 } tr.key > th > div { width: 1em; } @@ -265,7 +266,7 @@ fn render_all_leftovers(row: &Row) -> HTML { fn render_row(columns: &[String], rowlike: &mut Rowlike) -> HTML { match rowlike { - Rowlike::Spacer => HTML::from(" "), + Rowlike::Spacer => HTML::from("\n"), Rowlike::Row(row) => { let row_label = HTML::escape(row.label.as_ref()); let cells = columns