mirror of
https://github.com/sharkdp/hyperfine.git
synced 2026-11-03 01:21:25 +00:00
Simplifications
This commit is contained in:
1 parent
1032204d7e
commit
a947ba1d06
7 files changed
+218
-135
No files matched your search
+10
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user