From fe6f70efe1e5681bdcfc63628b44a5c8a2bd1e78 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 13 Sep 2020 10:45:03 -0400 Subject: [PATCH] gtk-demo: Ignore some lines in info Ignore lines starting with # in the info comment at the top of source files. This will be used to add keywords for search in following commits. --- demos/gtk-demo/main.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c index 9abbd0f943..3011c3e890 100644 --- a/demos/gtk-demo/main.c +++ b/demos/gtk-demo/main.c @@ -581,6 +581,9 @@ load_file (const char *demoname, while (g_ascii_isspace (*(p + len - 1))) len--; + if (*p == '#') + break; + if (len > 0) { if (in_para)