BUG FIX: Report relevant notes after a project title when there are notes on a project

This commit is contained in:
Campbell Alden 2024-02-28 09:24:54 +09:00
parent 52b869cca5
commit f1ac5bb718
3 changed files with 5 additions and 5 deletions

View file

@ -180,7 +180,7 @@ impl Reporter for MarkdownReporter {
if options.sanitize_names {
output = sanitize_names(&output, &task.tags);
}
return output;
output
}
fn report_project(&mut self, project: &ProjectTree, depth: usize, options: &ReportOptions) -> String {
let resolution = &options.resolution;
@ -198,7 +198,7 @@ impl Reporter for MarkdownReporter {
.map(|t| self.report_task(t, depth + 4, options))
.collect::<Vec<String>>()
.join("");
format!("{}{}{}{}", String::from(" ").repeat(depth), relevant_notes, project.title, tasks)
format!("{}{}{}{}", String::from(" ").repeat(depth), project.title, relevant_notes, tasks)
},
Resolution::Project => {
format!("{}- {}{}", String::from(" ").repeat(depth), project.title, relevant_notes)
@ -209,7 +209,7 @@ impl Reporter for MarkdownReporter {
output = sanitize_names(&output, &project.tags);
}
return output;
output
}
fn report_single_area(&mut self, area: &AreaTree, options: &ReportOptions) -> String {
let project_reports = area.projects