commit 0a8c1ae036aea0844cff10f998f404b9cca973b0
Author: Quentin Rameau <[email protected]>
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
@@ -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);
@@ -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>");
}