diff --git a/src/message/html.rs b/src/message/html.rs
index d006269..5435a77 100644
--- a/src/message/html.rs
+++ b/src/message/html.rs
@@ -198,7 +198,7 @@ impl Table {
})
.collect();
- let joined = join_cell_text(cells, Span::styled(line::VERTICAL, style));
+ let joined = join_cell_text(cells, Span::styled(line::VERTICAL, style), style);
text.lines.extend(joined.lines);
nrows += 1;
diff --git a/src/util.rs b/src/util.rs
index e667412..46a5d91 100644
--- a/src/util.rs
+++ b/src/util.rs
@@ -125,7 +125,7 @@ pub fn space_text(width: usize, style: Style) -> Text<'static> {
space_span(width, style).into()
}
-pub fn join_cell_text<'a>(texts: Vec<(Text<'a>, usize)>, join: Span<'a>) -> Text<'a> {
+pub fn join_cell_text<'a>(texts: Vec<(Text<'a>, usize)>, join: Span<'a>, style: Style) -> Text<'a> {
let height = texts.iter().map(|t| t.0.height()).max().unwrap_or(0);
let mut text = Text { lines: vec![Spans(vec![join.clone()]); height] };
@@ -134,7 +134,7 @@ pub fn join_cell_text<'a>(texts: Vec<(Text<'a>, usize)>, join: Span<'a>) -> Text
if let Some(spans) = t.lines.get_mut(i) {
text.lines[i].0.append(&mut spans.0);
} else {
- text.lines[i].0.push(space_span(w, Style::default()));
+ text.lines[i].0.push(space_span(w, style));
}
text.lines[i].0.push(join.clone());