atom.xml: improve output format a bit - stagit-gopher - A git gopher frontend. … | |
git clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2h… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
commit a83ff32136aa4f42d62251c30533bfe1b80b7696 | |
parent 66f25f38f7f59c9c37bb2462143c1250a20d04b0 | |
Author: Hiltjo Posthuma <[email protected]> | |
Date: Fri, 21 Feb 2020 13:45:59 +0100 | |
atom.xml: improve output format a bit | |
Diffstat: | |
M stagit-gopher.c | 4 ++-- | |
1 file changed, 2 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/stagit-gopher.c b/stagit-gopher.c | |
@@ -780,11 +780,11 @@ printcommitatom(FILE *fp, struct commitinfo *ci) | |
xmlencode(fp, ci->summary, strlen(ci->summary)); | |
fputs("</title>\n", fp); | |
} | |
- fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"commit/… | |
+ fprintf(fp, "<link rel=\"alternate\" type=\"text/html\" href=\"commit/… | |
ci->oid); | |
if (ci->author) { | |
- fputs("<author><name>", fp); | |
+ fputs("<author>\n<name>", fp); | |
xmlencode(fp, ci->author->name, strlen(ci->author->name)); | |
fputs("</name>\n<email>", fp); | |
xmlencode(fp, ci->author->email, strlen(ci->author->email)); |