From 749f3e425c33f376d416cd862cb93f1eaf1ef540 Mon Sep 17 00:00:00 2001 From: Nick Groenen Date: Mon, 21 Dec 2020 13:04:10 +0100 Subject: [PATCH] Chg: Add extra whitespace around multi-line warnings This makes errors a bit easier to distinguish after a number of warnings has been printed. --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 2542dbf..64bf3e7 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -387,7 +387,7 @@ fn embed_file<'a, 'b>(note_name: &'a str, context: &'b Context) -> Result { // TODO: Extract into configurable function. println!( - "Warning: Unable to find embedded note\n\tReference: '{}'\n\tSource: '{}'", + "Warning: Unable to find embedded note\n\tReference: '{}'\n\tSource: '{}'\n", note_name, context.current_file().display(), ); @@ -414,7 +414,7 @@ fn make_link_to_file<'a>(file: &'a str, label: &'a str, context: &Context) -> Ma if target_file.is_none() { // TODO: Extract into configurable function. println!( - "Warning: Unable to find referenced note\n\tReference: '{}'\n\tSource: '{}'", + "Warning: Unable to find referenced note\n\tReference: '{}'\n\tSource: '{}'\n", file, context.current_file().display(), );