Unidiff1 files changed, 1 insertions, 1 deletions
|
diff --git a/ui-atom.c b/ui-atom.c index e5c31d9..808b2d0 100644 --- a/ ui-atom.c+++ b/ ui-atom.c |
|
@@ -23,25 +23,25 @@ void add_entry(struct commit *commit, char *host) |
23 | html("<title>"); |
23 | html("<title>"); |
24 | html_txt(info->subject); |
24 | html_txt(info->subject); |
25 | html("</title>\n"); |
25 | html("</title>\n"); |
26 | html("<updated>"); |
26 | html("<updated>"); |
27 | cgit_print_date(info->author_date, FMT_ATOMDATE, ctx.cfg.local_time); |
27 | cgit_print_date(info->author_date, FMT_ATOMDATE, ctx.cfg.local_time); |
28 | html("</updated>\n"); |
28 | html("</updated>\n"); |
29 | html("<author>\n"); |
29 | html("<author>\n"); |
30 | if (info->author) { |
30 | if (info->author) { |
31 | html("<name>"); |
31 | html("<name>"); |
32 | html_txt(info->author); |
32 | html_txt(info->author); |
33 | html("</name>\n"); |
33 | html("</name>\n"); |
34 | } |
34 | } |
35 | if (info->author_email) { |
35 | if (info->author_email && !ctx.cfg.noplainemail) { |
36 | mail = xstrdup(info->author_email); |
36 | mail = xstrdup(info->author_email); |
37 | t = strchr(mail, '<'); |
37 | t = strchr(mail, '<'); |
38 | if (t) |
38 | if (t) |
39 | t++; |
39 | t++; |
40 | else |
40 | else |
41 | t = mail; |
41 | t = mail; |
42 | t2 = strchr(t, '>'); |
42 | t2 = strchr(t, '>'); |
43 | if (t2) |
43 | if (t2) |
44 | *t2 = '\0'; |
44 | *t2 = '\0'; |
45 | html("<email>"); |
45 | html("<email>"); |
46 | html_txt(t); |
46 | html_txt(t); |
47 | html("</email>\n"); |
47 | html("</email>\n"); |
|