tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) }
td { border: thin solid gray; }
td.numeric { text-align: right; }
tr.key > th > div > div { width: 5em; transform-origin: bottom left; transform: translateX(1em) rotate(-65deg) }
td { border: thin solid gray; }
td.numeric { text-align: right; }
td.spacer { border: none; }
/* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */
.highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; }
td.spacer { border: none; }
/* h/t https://stackoverflow.com/questions/5687035/css-bolding-some-text-without-changing-its-containers-size/46452396#46452396 */
.highlight { text-shadow: -0.06ex 0 black, 0.06ex 0 black; }
fn render_column_headers(columns: &[String]) -> String {
// TODO: Escape HTML special characters
String::from("<th></th>")
fn render_column_headers(columns: &[String]) -> String {
// TODO: Escape HTML special characters
String::from("<th></th>")
- + &columns
- .iter()
- .map(|c| format!("<th>{c}</th>"))
- .collect::<String>()
+ + &columns.iter().fold(String::new(), |mut acc, c| {
+ write!(&mut acc, "<th>{c}</th>").unwrap();
+ acc
+ })