Handle headerless tables

This commit is contained in:
Juno Takano 2026-02-16 12:54:47 -03:00
commit c116f6c1cb
2 changed files with 14 additions and 1 deletions

View file

@ -22,6 +22,8 @@ impl Table {
pub fn add_cell(&mut self, content: &str) {
if let Some(last) = self.contents.last_mut() {
last.push(content.trim().to_string());
} else {
self.contents.push(vec![content.trim().to_string()]);
}
}