mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-31 11:01:22 -05:00
info: Ellipsize end-of-life messages
These can be long, so ellipsize them. Closes: #2499 Approved by: matthiasclasen
This commit is contained in:
committed by
Atomic Bot
parent
ccd602dd19
commit
7022291045
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user