Add space between datetime and filename for listings
This commit is contained in:
parent
fb49922662
commit
1036e90238
@ -205,7 +205,7 @@ impl fmt::Display for Listing {
|
|||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
|
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
|
||||||
Some(dt) => write!(f, "{dt}")?,
|
Some(dt) => write!(f, "{dt} ")?,
|
||||||
_ => write!(f, "{:>19} ", self.mtime)?,
|
_ => write!(f, "{:>19} ", self.mtime)?,
|
||||||
}
|
}
|
||||||
match self.kind {
|
match self.kind {
|
||||||
@ -324,7 +324,7 @@ impl Listing {
|
|||||||
},
|
},
|
||||||
);
|
);
|
||||||
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
|
match NaiveDateTime::from_timestamp_opt(self.mtime as i64, 0) {
|
||||||
Some(dt) => print!("{dt}"),
|
Some(dt) => print!("{dt} "),
|
||||||
_ => print!("{:>19} ", self.mtime),
|
_ => print!("{:>19} ", self.mtime),
|
||||||
}
|
}
|
||||||
let mut stdout = StandardStream::stdout(ColorChoice::Auto);
|
let mut stdout = StandardStream::stdout(ColorChoice::Auto);
|
||||||
|
Loading…
Reference in New Issue
Block a user