[evolution] news-to-appdata: Allow free paragraph section start with "*" or " *"
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] news-to-appdata: Allow free paragraph section start with "*" or " *"
- Date: Fri, 1 Jul 2022 09:06:13 +0000 (UTC)
commit 9d9b4911ec71ce2297cce885575b81ec925b6a3e
Author: Milan Crha <mcrha redhat com>
Date: Fri Jul 1 10:39:16 2022 +0200
news-to-appdata: Allow free paragraph section start with "*" or " *"
news-to-appdata.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/news-to-appdata.c b/news-to-appdata.c
index 98db7cd4e6..18bd41959e 100644
--- a/news-to-appdata.c
+++ b/news-to-appdata.c
@@ -149,12 +149,12 @@ extract_versions (GSList **pversions,
paragraph = NULL;
}
/* Starts a free paragraph section */
- } else if (*line == '*') {
+ } else if (*line == '*' || (line[0] == ' ' && line[1] == '*')) {
if (paragraph) {
g_printerr ("news-to-appdata: Unexpected start of a
free paragraph section when reading one at line %d of '%s'\n", ii, filename);
res = FALSE;
} else {
- paragraph = g_string_new (g_strstrip (line + 1));
+ paragraph = g_string_new (g_strstrip (line + (*line
== '*' ? 1 : 2)));
}
/* Continues the free paragraph section */
} else if (*line == ' ') {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]