diff options
-rw-r--r-- | src/crates/cli/src/display.rs | 7 | ||||
-rw-r--r-- | src/crates/cli/src/model.rs | 2 |
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(()) } |