Fix "now" not being right-aligned

This commit is contained in:
Joscha 2021-12-22 16:11:34 +00:00
parent 2078c5e883
commit e2624fe64f

View file

@ -72,7 +72,7 @@ impl ShowLines {
fn display_line_now(&mut self, spans: &[Option<SpanSegment>], time: Time) {
self.push(&format!(
"{:<nw$} {} {}\n",
"{:>nw$} {} {}\n",
"now".bright_cyan().bold(),
self.display_spans(spans, " ".into()),
Self::display_time(Times::At(time)),