From bf5aa3742fd664be3c93160b9c28c145b1ed8bc9 Mon Sep 17 00:00:00 2001 From: Jonathan Dygert Date: Thu, 11 Jul 2024 19:04:28 -0400 Subject: [PATCH] fix(graphical): Format entire link instead of just name (#389) --- src/handlers/graphical.rs | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/handlers/graphical.rs b/src/handlers/graphical.rs index 714e576..87fb354 100644 --- a/src/handlers/graphical.rs +++ b/src/handlers/graphical.rs @@ -568,13 +568,16 @@ impl GraphicalReportHandler { }; if let Some(source_name) = primary_contents.name() { - let source_name = source_name.style(self.theme.styles.link); writeln!( f, - "[{}:{}:{}]", - source_name, - primary_contents.line() + 1, - primary_contents.column() + 1 + "[{}]", + format_args!( + "{}:{}:{}", + source_name, + primary_contents.line() + 1, + primary_contents.column() + 1 + ) + .style(self.theme.styles.link) )?; } else if lines.len() <= 1 { writeln!(f, "{}", self.theme.characters.hbar.to_string().repeat(3))?;