Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/table/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -299,10 +299,10 @@ impl TableCell {
.with_classes(vec![TableClass::StubHead])
}

/// A stub row-label cell (`TableClass::Stub`).
/// A stub row-label cell (`TableClass::Row`, `TableClass::Stub`).
pub(crate) fn new_stub_row_label(row: usize, index: usize, content: String) -> Self {
Self::new(TableCellKind::StubRowLabel, row, row, index, index, content)
.with_classes(vec![TableClass::Stub])
.with_classes(vec![TableClass::Row, TableClass::Stub])
}

/// A group-stub group-label cell (`TableClass::StubRowGroup`).
Expand Down
3 changes: 2 additions & 1 deletion src/writer/html.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1241,7 +1241,8 @@ mod tests {
// LABEL given); the row labels render as <th scope="row">, both
// right-aligned (resolve_column_properties' STUB default).
assert!(html.contains("<th scope=\"col\" class=\"ggsql_stub_head ggsql_right\"></th>"));
assert!(html.contains("<th scope=\"row\" class=\"ggsql_stub ggsql_right\">north</th>"));
assert!(html
.contains("<th scope=\"row\" class=\"ggsql_row ggsql_stub ggsql_right\">north</th>"));
assert!(html.contains("<td class=\"ggsql_row ggsql_right\">1</td>")); // "amount" unaffected
assert!(html.find("ggsql_stub_head").unwrap() < html.find(">amount</th>").unwrap());
}
Expand Down
Loading