aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frontend/ui.rs4
1 files changed, 3 insertions, 1 deletions
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(