mirror of
git://git.codemadness.org/stagit
synced 2025-03-06 14:49:08 -05:00
in Atom (RFC4287) an atomTextConstruct specifies the type text as the default
This saves a few bytes.
This commit is contained in:
parent
37f2b1165a
commit
5e0b02d248
4
stagit.c
4
stagit.c
@ -860,7 +860,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
|
||||
fputs("</updated>\n", fp);
|
||||
}
|
||||
if (ci->summary) {
|
||||
fputs("<title type=\"text\">", fp);
|
||||
fputs("<title>", fp);
|
||||
if (tag && tag[0]) {
|
||||
fputs("[", fp);
|
||||
xmlencode(fp, tag, strlen(tag));
|
||||
@ -880,7 +880,7 @@ printcommitatom(FILE *fp, struct commitinfo *ci, const char *tag)
|
||||
fputs("</email>\n</author>\n", fp);
|
||||
}
|
||||
|
||||
fputs("<content type=\"text\">", fp);
|
||||
fputs("<content>", fp);
|
||||
fprintf(fp, "commit %s\n", ci->oid);
|
||||
if (ci->parentoid[0])
|
||||
fprintf(fp, "parent %s\n", ci->parentoid);
|
||||
|
Loading…
x
Reference in New Issue
Block a user