From d753985ee7c5fdd6f6b7d3d272badd1684c39ad6 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Wed, 28 Mar 2007 15:06:20 +0000 Subject: (format_pkg_simplifiedinfo) do display some data if only one field is not UTF-8 valid --- Rpmdrake/gui.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Rpmdrake') diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index aef6170f..cdb0759b 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -76,8 +76,8 @@ sub format_pkg_simplifiedinfo { # workaround gtk+ bug where GtkTextView wronly limit embedded widget size to bigger line's width (#25533): "\x{200b} \x{feff}" . ' ' x 120, if_($update_descr, # is it an update? - format_field(N("Importance: ")) . escape_text_for_TextView_markup_format($descriptions->{$name}{importance}), - format_field(N("Reason for update: ")) . escape_text_for_TextView_markup_format(rpm_description($descriptions->{$name}{pre})), + format_field(N("Importance: ")) . eval { escape_text_for_TextView_markup_format($descriptions->{$name}{importance}) }, + format_field(N("Reason for update: ")) . eval { escape_text_for_TextView_markup_format(rpm_description($descriptions->{$name}{pre})) }, ), '')); # extra empty line if ($update_descr) { @@ -89,7 +89,7 @@ sub format_pkg_simplifiedinfo { } push @$s, @{ ugtk2::markup_to_TextView_format(join("\n", - (escape_text_for_TextView_markup_format($pkgs->{$key}{description} || $descriptions->{$name}{description}) || '' . N("No description") . '') + (eval { escape_text_for_TextView_markup_format($pkgs->{$key}{description} || $descriptions->{$name}{description}) } || '' . N("No description") . '') )) }; push @$s, [ "\n" ]; push @$s, [ gtkadd(gtkshow(my $exp0 = Gtk2::Expander->new(format_field(N("Details:")))), -- cgit v1.2.1