From abec380f1b09b1a6ef00ab6eb9c35674588bebe4 Mon Sep 17 00:00:00 2001 From: lukeflo Date: Tue, 8 Oct 2024 23:17:55 +0200 Subject: little fix with empty line above file --- src/frontend/ui.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/frontend') diff --git a/src/frontend/ui.rs b/src/frontend/ui.rs index ed6171e..6a292d7 100644 --- a/src/frontend/ui.rs +++ b/src/frontend/ui.rs @@ -270,8 +270,10 @@ impl App { Span::styled("Year: ", style_value), Span::styled(cur_entry.year.clone(), Style::new().light_magenta()), ])); - if !cur_entry.doi_url.is_empty() { + if !cur_entry.doi_url.is_empty() || !cur_entry.filepath.is_empty() { lines.push(Line::raw("")); + } + if !cur_entry.doi_url.is_empty() { lines.push(Line::from(vec![ Span::styled("DOI/URL: ", style_value_sec), Span::styled( -- cgit v1.2.3