summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <pwithnall@endlessos.org>2021-01-30 22:28:54 +0000
committerRichard Hughes <richard@hughsie.com>2021-01-30 22:45:23 +0000
commit8316f50f1bb39609a2f625dfefa600e08c5cd8d7 (patch)
treea288604c777eaa00fd54508253de00a6811894b4
parent1b9d0120034e1f2d8108edf01c8a9be40bded229 (diff)
downloadappstream-glib-8316f50f1bb39609a2f625dfefa600e08c5cd8d7.tar.gz
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 <pwithnall@endlessos.org>
-rw-r--r--client/as-util.c4
1 files 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 */