From 24839876714d39ebee3052b0c58113af311e3a45 Mon Sep 17 00:00:00 2001 From: Aria Shrimpton Date: Sat, 24 Feb 2024 22:48:56 +0000 Subject: fix cost model not getting printed in latex --- src/crates/cli/src/display.rs | 7 +++++++ src/crates/cli/src/model.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'src/crates') 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(()) } -- cgit v1.2.3