From 8316f50f1bb39609a2f625dfefa600e08c5cd8d7 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Sat, 30 Jan 2021 22:28:54 +0000 Subject: as-util: Fix Markdown underlining in appdata-to-news Markdown underlines are with `=` or `-`, not `~`. This fixes the Markdown rendering of appdata-to-news-ed files in GitLab. Signed-off-by: Philip Withnall --- client/as-util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/as-util.c b/client/as-util.c index 0bb1ea9..0aa4754 100644 --- a/client/as-util.c +++ b/client/as-util.c @@ -655,11 +655,11 @@ as_util_appdata_to_news (AsUtilPrivate *priv, gchar **values, GError **error) rel = g_ptr_array_index (releases, i); - /* print version with underline */ + /* print version with Markdown underline */ version = g_strdup_printf ("Version %s", as_release_get_version (rel)); g_string_append_printf (str, "%s\n", version); for (j = 0; version[j] != '\0'; j++) - g_string_append (str, "~"); + g_string_append (str, "="); g_string_append (str, "\n"); /* print release */ -- cgit v1.2.1