mirror of https://github.com/zkat/miette.git
fix(graphical): Format entire link instead of just name (#389)
This commit is contained in:
parent
bdd1d74614
commit
bf5aa3742f
|
|
@ -568,13 +568,16 @@ impl GraphicalReportHandler {
|
||||||
};
|
};
|
||||||
|
|
||||||
if let Some(source_name) = primary_contents.name() {
|
if let Some(source_name) = primary_contents.name() {
|
||||||
let source_name = source_name.style(self.theme.styles.link);
|
|
||||||
writeln!(
|
writeln!(
|
||||||
f,
|
f,
|
||||||
"[{}:{}:{}]",
|
"[{}]",
|
||||||
source_name,
|
format_args!(
|
||||||
primary_contents.line() + 1,
|
"{}:{}:{}",
|
||||||
primary_contents.column() + 1
|
source_name,
|
||||||
|
primary_contents.line() + 1,
|
||||||
|
primary_contents.column() + 1
|
||||||
|
)
|
||||||
|
.style(self.theme.styles.link)
|
||||||
)?;
|
)?;
|
||||||
} else if lines.len() <= 1 {
|
} else if lines.len() <= 1 {
|
||||||
writeln!(f, "{}", self.theme.characters.hbar.to_string().repeat(3))?;
|
writeln!(f, "{}", self.theme.characters.hbar.to_string().repeat(3))?;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue