mirror of
https://github.com/typst/typst
synced 2025-05-22 04:55:29 +08:00
Underline file path of failed test (#6281)
This commit is contained in:
parent
d204a28818
commit
91cadbf307
@ -30,7 +30,8 @@ pub struct Test {
|
|||||||
|
|
||||||
impl Display for Test {
|
impl Display for Test {
|
||||||
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
fn fmt(&self, f: &mut Formatter) -> fmt::Result {
|
||||||
write!(f, "{} ({})", self.name, self.pos)
|
// underline path
|
||||||
|
write!(f, "{} (\x1B[4m{}\x1B[0m)", self.name, self.pos)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user