Skip to content

Commit

Permalink
gtk: Trim changelog descriptions
Browse files Browse the repository at this point in the history
html2runes unconditionally adds newlines before/after elements. This
creates a large blank space in the UI if the last thing in the changelog
description is a list.

Signed-off-by: Tim Crawford <tcrawford@system76.com>
  • Loading branch information
crawfxrd authored and jacobgkau committed Aug 12, 2022
1 parent f3ecafd commit 0b24411
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gtk/src/changelog.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ where
let markdown = if entry.as_ref().is_empty() {
fl!("changelog-unavailable")
} else {
html2runes::markdown::convert_string(entry.as_ref())
html2runes::markdown::convert_string(entry.as_ref()).trim().to_string()
};

// NOTE: If we don't set a max width in chars, the label resizes its parent.
Expand Down

0 comments on commit 0b24411

Please sign in to comment.