[gimp] app: fix gimp_appstream_to_pango_markup().
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: fix gimp_appstream_to_pango_markup().
- Date: Fri, 4 Mar 2022 17:50:04 +0000 (UTC)
commit 9d3199f14eb070728d1c17b279efe0df2ebc68d7
Author: Jehan <jehan girinstud io>
Date: Fri Mar 4 18:48:42 2022 +0100
app: fix gimp_appstream_to_pango_markup().
The newline was added in the wrong place in some cases.
app/core/gimp-utils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/app/core/gimp-utils.c b/app/core/gimp-utils.c
index 671a02ce0c..5bd0f493fd 100644
--- a/app/core/gimp-utils.c
+++ b/app/core/gimp-utils.c
@@ -1421,7 +1421,10 @@ appstream_text_end_element (GMarkupParseContext *context,
}
else if (g_strcmp0 (element_name, "li") == 0)
{
- g_string_append (state->text, "\n");
+ if (state->original)
+ g_string_append (state->original, "\n");
+ else
+ g_string_append (state->text, "\n");
}
if (state->foreign_level > state->level)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]