tstyle: write atom feed end in one write, kills 2 lines - stagit - static git page generator
(HTM) git clone git://src.adamsgaard.dk/stagit
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit f5301b25e1f78db67031354bfc0cb76ffe60000e
(DIR) parent 1a3584e2d0689aece46d9832c91f57723296807f
(HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 2 May 2016 21:23:17 +0200
style: write atom feed end in one write, kills 2 lines
Diffstat:
M stagit.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
(DIR) diff --git a/stagit.c b/stagit.c
t@@ -668,9 +668,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci)
fputc('\n', fp);
xmlencode(fp, ci->msg, strlen(ci->msg));
}
- fputs("\n</content>\n", fp);
-
- fputs("</entry>\n", fp);
+ fputs("\n</content>\n</entry>\n", fp);
}
int