[seahorse] search-provider: Don't escape result description as markup
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [seahorse] search-provider: Don't escape result description as markup
- Date: Mon, 10 Jan 2022 14:08:42 +0000 (UTC)
commit 2e91c66ed009f2be8f460bea3e65e45089f4f7e1
Author: Sebastian Keller <skeller gnome org>
Date: Thu Dec 23 01:59:35 2021 +0100
search-provider: Don't escape result description as markup
Only the shell can know how the description string will be used and if
or when it should be escaped. Previously the shell did not escape the
description before displaying it with markup to highlight search hits,
but now it does. For seahorse this however means without this change the
string will be escaped twice and could cause markup to show up in the
description text.
Related: https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2033
src/search-provider.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/search-provider.vala b/src/search-provider.vala
index 57c86da8..aa4f705f 100644
--- a/src/search-provider.vala
+++ b/src/search-provider.vala
@@ -183,7 +183,7 @@ public class Seahorse.SearchProvider : GLib.Object {
string? description = get_description_if_available(object);
if (description != null)
- meta["description"] = Markup.escape_text(description);
+ meta["description"] = description;
metas[good_results] = meta;
good_results++;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]