[gnome-software/wip/temp/ubuntu-xenial-rebased: 154/326] Drop changelog formatting - we have disabled this in Ubuntu



commit 8961e54c264601f4d6c6a20898fb486bbe035fa0
Author: Robert Ancell <robert ancell canonical com>
Date:   Wed Mar 16 12:49:54 2016 +1300

    Drop changelog formatting - we have disabled this in Ubuntu

 src/plugins/gs-plugin-apt.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/plugins/gs-plugin-apt.c b/src/plugins/gs-plugin-apt.c
index 67cfaf4..e1b8738 100644
--- a/src/plugins/gs-plugin-apt.c
+++ b/src/plugins/gs-plugin-apt.c
@@ -445,15 +445,12 @@ get_changelog (GsPlugin *plugin, GsApp *app)
                if (!version_newer (current_version, v))
                        break;
 
-               g_string_append_printf (details, "# %s\n\n", v);
+               g_string_append_printf (details, "%s\n", v);
                for (i++; lines[i] != NULL; i++) {
                        // Last line is in the form " -- maintainer name <email address>  date"
                        if (g_str_has_prefix (lines[i], " -- "))
                                break;
-                       if (g_str_has_prefix (lines[i], "  "))
-                               g_string_append_printf (details, "%s\n\n", lines[i] + 2);
-                       else
-                               g_string_append_printf (details, "%s\n\n", lines[i]);
+                       g_string_append_printf (details, "%s\n", lines[i]);
                }
        }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]