/* 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; }
InputLine::Blank if self.row.is_some() => {
return Ok(std::mem::take(&mut self.row).map(Rowlike::Row)).transpose()
}
- InputLine::Blank => {}
+ InputLine::Blank => return Some(Ok(Rowlike::Spacer)),
InputLine::Entry(col, instance) => match &mut self.row {
None => {
return Some(Err(std::io::Error::other(format!(
fn render_row(columns: &[String], rowlike: &mut Rowlike) -> HTML {
match rowlike {
- Rowlike::Spacer => HTML::from("<tr><td> </td></tr>"),
+ Rowlike::Spacer => HTML::from("<tr><th class=\"spacer_row\"></th></tr>\n"),
Rowlike::Row(row) => {
let row_label = HTML::escape(row.label.as_ref());
let cells = columns
label: "foo".to_owned(),
entries: HashMap::new(),
}),
+ Rowlike::Spacer,
Rowlike::Row(Row {
label: "bar".to_owned(),
entries: HashMap::new(),