Chg: Add extra whitespace around multi-line warnings

This makes errors a bit easier to distinguish after a number of warnings
has been printed.
This commit is contained in:
Nick Groenen 2020-12-21 13:04:10 +01:00
parent 3b46d6b7d1
commit 749f3e425c
No known key found for this signature in database
GPG Key ID: 4F0AD019928AE098

View File

@ -387,7 +387,7 @@ fn embed_file<'a, 'b>(note_name: &'a str, context: &'b Context) -> Result<Markdo
None => {
// 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(),
);