Skip to content

Commit

Permalink
Add back the newline on parse_page error
Browse files Browse the repository at this point in the history
Whitespace is trimmed from every line since
7669fc0,
and the error message was missing a newline.
  • Loading branch information
acuteenvy committed Sep 3, 2024
1 parent 3c5dde2 commit a6df05f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down

0 comments on commit a6df05f

Please sign in to comment.