Simplifications

This commit is contained in:
David Peter committed 2026-10-06 15:09:25 +02:00
1 parent 1032204d7e
commit a947ba1d06
7 files changed
+218 -135

No files matched your search

+10 -1
View File
@@ -24,7 +24,16 @@ impl MarkupExporter for AsciidocExporter {
}
fn table_row(&self, cells: &[&str]) -> String {
format!("\n| {}\n", cells.join("\n| "))
let mut row = String::from("\n");
for cell in cells {
row.push('|');
if !cell.is_empty() {
row.push(' ');
row.push_str(cell);
}
row.push('\n');
}
row
}
fn table_divider(&self, _cell_aligmnents: &[Alignment]) -> String {