чување 3dca8f638d08bf5816270eb5743fd4e70ea69980
родитељ db268c4758301c2a06c87f0977cda23f38418710
Аутор: Страхиња Радић <contact@strahinja.org>
Датум: Wed, 7 Jun 2023 14:21:34 +0200
Add <article> around each file output in {incdir}
Signed-off-by: Страхиња Радић <contact@strahinja.org>
Diffstat:
измењених датотека: 2, додавања: 5(+), брисања: 0(-)
diff --git a/slweb.1.in b/slweb.1.in
@@ -641,6 +641,7 @@ similar to the
directive. (See
.BR Includes " and " date ", " ext-in-permalink ", " permalink-url ", "
.BR samedir-permalink " variables.)"
+The output of each file will be surrounded by an \fC<article>\fR tag.
.RE
.
.IP \[bu]
diff --git a/slweb.c b/slweb.c
@@ -1590,6 +1590,8 @@ process_incdir_subdir(FILE* output, const char* subdirname,
{
int pstatus = 0;
+ print_output(output, "<article>\n");
+
fflush(output);
pid_t pid = fork();
@@ -1671,6 +1673,8 @@ process_incdir_subdir(FILE* output, const char* subdirname,
else
exit(error(1, (u8*)"Fork failed"));
+ print_output(output, "</article>\n");
+
pnamelist++;
names_output++;
}