Skip to content

Commit

Permalink
linebreak fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fnschmidt committed Oct 10, 2024
1 parent 8655fde commit 61816b2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 19 deletions.
32 changes: 16 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions src/data_backend/stuwe_parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ pub async fn stuwe_build_diff_msg(diff: &CanteenMealDiff) -> String {
"\nNeue Gerichte:"
}));
msg += &mealgroups_to_msg(new_meals);
msg += "\n";
}
if let Some(modified_meals) = diff.modified_meals.as_ref() {
msg += &markdown::bold(&markdown::underline(if modified_meals.len() == 1 {
Expand All @@ -83,7 +82,6 @@ pub async fn stuwe_build_diff_msg(diff: &CanteenMealDiff) -> String {
"\nGeänderte Gerichte:"
}));
msg += &mealgroups_to_msg(modified_meals);
msg += "\n";
}

if let Some(removed_meals) = diff.removed_meals.as_ref() {
Expand All @@ -94,7 +92,7 @@ pub async fn stuwe_build_diff_msg(diff: &CanteenMealDiff) -> String {
}));
for rem_meal in removed_meals {
for sub_meal in &rem_meal.sub_meals {
msg += &format!(" • {}\n", markdown::underline(&sub_meal.name));
msg += &format!("\n • {}", markdown::underline(&sub_meal.name));
}
}
}
Expand Down

0 comments on commit 61816b2

Please sign in to comment.