aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crates/cli/src/display.rs7
-rw-r--r--src/crates/cli/src/model.rs2
2 files changed, 8 insertions, 1 deletions
diff --git a/src/crates/cli/src/display.rs b/src/crates/cli/src/display.rs
index 38e5c44..d8e2821 100644
--- a/src/crates/cli/src/display.rs
+++ b/src/crates/cli/src/display.rs
@@ -63,6 +63,13 @@ impl State {
)
}))
}
+
+ pub fn print_table_raw(&self, mut t: Table) {
+ println!("{}", t.with(Style::sharp()));
+ if self.with_latex {
+ print_latex(t);
+ }
+ }
}
fn print_latex(t: Table) {
diff --git a/src/crates/cli/src/model.rs b/src/crates/cli/src/model.rs
index d6824b6..9379cc3 100644
--- a/src/crates/cli/src/model.rs
+++ b/src/crates/cli/src/model.rs
@@ -34,7 +34,7 @@ impl State {
]);
}
- println!("{}", builder.build().with(Style::sharp()));
+ self.print_table_raw(builder.build());
Ok(())
}