[wiki] [sites] build-page: remove unnecessary calls to fputs || Quentin Rameau
commit 0a8c1ae036aea0844cff10f998f404b9cca973b0
Author: Quentin Rameau <quinq_AT_fifth.space>
Date: Sun Jan 6 01:13:36 2019 +0100
build-page: remove unnecessary calls to fputs
diff --git a/build-page.c b/build-page.c
index 7bb460e1..a6e15aae 100644
--- a/build-page.c
+++ b/build-page.c
_AT_@ -235,7 +235,7 @@ menu_panel(char *domain, char *page, char *this, int depth)
continue;
for (i = 0; i < depth + 1; ++i)
- fputs(" ", stdout);
+ putchar(' ');
fputs("<li><a", stdout);
if (page && !strncmp(newdir, page, strlen(newdir)))
fputs(" class=\"thisPage\"", stdout);
_AT_@ -243,17 +243,17 @@ menu_panel(char *domain, char *page, char *this, int depth)
print_name(d);
fputs("/</a>", stdout);
if (page && !strncmp(newdir, page, strlen(newdir))) {
- fputs("
", stdout);
+ putchar('
');
for (i = 0; i < depth + 2; ++i)
- fputs(" ", stdout);
+ putchar(' ');
/* TODO: empty <ul></ul> is printed for subitems */
puts("<ul>");
menu_panel(domain, page, newdir, depth + 1);
for (i = 0; i < depth + 2; ++i)
- fputs(" ", stdout);
- fputs("</ul>
", stdout);
+ putchar(' ');
+ puts("</ul>");
for (i = 0; i < depth + 1; ++i)
- fputs(" ", stdout);
+ putchar(' ');
}
puts("</li>");
}
Received on Sun Jan 06 2019 - 13:11:14 CET
This archive was generated by hypermail 2.3.0
: Sun Jan 06 2019 - 13:12:27 CET