Add line break

- When actually view with an md viewer, like inlyne, add a line break
  after each back link.
This commit is contained in:
Thomas Gideon 2024-10-06 11:02:59 -04:00
parent 9ba049d021
commit 7392f97aae

View file

@ -231,7 +231,7 @@ async fn create_back_links(output_dir: &str, this_day: &DateTime<Local>) -> Resu
.with_context(|| format!("Could not parse {day} as date!"))?; .with_context(|| format!("Could not parse {day} as date!"))?;
let first = first.trim_start_matches(&format!("# {} - ", day.format("%Y-%m-%d"))); let first = first.trim_start_matches(&format!("# {} - ", day.format("%Y-%m-%d")));
let link = format!( let link = format!(
"[{} - {}](diary:{})", "[{} - {}](diary:{}) ",
(day - *this_day).to_relative(), (day - *this_day).to_relative(),
first.trim(), first.trim(),
b.trim_end_matches(".md") b.trim_end_matches(".md")