[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:26 -0400 (EDT) |
branch: master
commit 04f3cd40af53fc5df4c16441e4c0cdf2cbf2912b
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 22 16:47:09 2019 +0100
account for toc sub-menus of only a single item
---
js/infog/extension.c | 2 +-
js/infog/main.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/js/infog/extension.c b/js/infog/extension.c
index b293d74cad..ff301f6239 100644
--- a/js/infog/extension.c
+++ b/js/infog/extension.c
@@ -323,7 +323,7 @@ build_toc_string (GString *toc, WebKitDOMElement *elt)
first = 0;
g_string_append (toc, "+");
}
- else if (!e)
+ if (!e)
{
g_string_append (toc, "-");
}
diff --git a/js/infog/main.c b/js/infog/main.c
index 60d4d0df5d..e3aa7106f5 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -292,7 +292,7 @@ load_toc (char *p)
toc_iter = last_iter;
}
}
- else if (*q == '-')
+ if (*q == '-')
{
q++;
last = 1;
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20