From a6df05f3ea41fdba4653e446011dd16ac3bc7d7c Mon Sep 17 00:00:00 2001 From: Lena <126529524+acuteenvy@users.noreply.github.com> Date: Mon, 26 Aug 2024 19:53:20 +0200 Subject: [PATCH] Add back the newline on parse_page error Whitespace is trimmed from every line since 7669fc0f50dadd96f7c343e41b9753c574424659, and the error message was missing a newline. --- src/error.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/error.rs b/src/error.rs index 70f4f6a..1b0e55f 100644 --- a/src/error.rs +++ b/src/error.rs @@ -63,7 +63,7 @@ impl Error { pub fn parse_page(page_path: &Path, i: usize, line: &str) -> Self { Error::new(format!( - "'{}' is not a valid tldr page. (line {}):\n\n {}", + "'{}' is not a valid tldr page. (line {}):\n\n {}\n", page_path.display(), i, line.bold(),