info: Ellipsize end-of-life messages

These can be long, so ellipsize them.

Closes: #2499
Approved by: matthiasclasen
This commit is contained in:
Matthias Clasen
2019-01-11 10:32:57 -05:00
committed by Atomic Bot
parent ccd602dd19
commit 7022291045

View File

@@ -320,9 +320,15 @@ flatpak_builtin_info (int argc, char **argv, GCancellable *cancellable, GError *
if (alt_id)
print_aligned (len, _("Alt-id:"), alt_id);
if (eol)
print_aligned (len, _("End-of-life:"), eol);
{
g_autofree char *formatted_eol = ellipsize_string (eol, width);
print_aligned (len, _("End-of-life:"), formatted_eol);
}
if (eol_rebase)
print_aligned (len, _("End-of-life-rebase:"), eol_rebase);
{
g_autofree char *formatted_eol = ellipsize_string (eol_rebase, width);
print_aligned (len, _("End-of-life-rebase:"), formatted_eol);
}
}
else
{