Re: [PATCH 3/8] Skip forbidden characters.

2014-07-01 Thread John Keeping
On Tue, Jul 01, 2014 at 09:40:28AM +0200, zwin...@kit.edu wrote: > From: Sebastian Buchwald Why do we want to do this? Does it not break anything that uses whitespace="pre" (explicitly or implicitly)? > --- > html.c | 9 ++--- > 1 file changed, 6 insertions(+), 3 deletions(-) > > diff --g

[PATCH 1/8] Can add diffs to Atom feed entries

2014-07-01 Thread zwinkau
From: Andreas Zwinkau Off by default. Set enable-atom-diff flag for repos to enable. Uses HTML5's "scoped CSS" feature to colorize diff deletes and inserts. Mainstream pre-HTML5 engines either ignore this or apply the style document-wide, which should not break anything. As cgit was not prepare

[PATCH 7/8] add to atom feed

2014-07-01 Thread zwinkau
From: Matthias Braun FEED Validator recommends it. --- ui-atom.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/ui-atom.c b/ui-atom.c index 4d9ba00..6da3e36 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -150,6 +150,17 @@ void cgit_print_atom(char *tip, char *path, int max_count, i

[PATCH 8/8] fix html error in diff output for binary files

2014-07-01 Thread zwinkau
From: Matthias Braun --- ui-diff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-diff.c b/ui-diff.c index b80..b7bf777 100644 --- a/ui-diff.c +++ b/ui-diff.c @@ -108,6 +108,7 @@ static void print_fileinfo(struct fileinfo *info) if (info->binary) { htmlf("bin%

[PATCH 5/8] display updated, use urn/url for atom:id

2014-07-01 Thread zwinkau
From: Matthias Braun --- ui-atom.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/ui-atom.c b/ui-atom.c index fdc5cb3..aa6a188 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -12,15 +12,13 @@ #include "ui-shared.h" #include "ui-diff.h" -stati

[PATCH 6/8] only one content tag allowed, so remove the text one

2014-07-01 Thread zwinkau
From: Matthias Braun --- ui-atom.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/ui-atom.c b/ui-atom.c index aa6a188..4d9ba00 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -75,9 +75,6 @@ static void add_entry(struct commit *commit, struct commitinfo *info, char *host } else {

[PATCH 4/8] add xml-header to atom-feed

2014-07-01 Thread zwinkau
From: Matthias Braun --- ui-atom.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-atom.c b/ui-atom.c index 6a6a98b..fdc5cb3 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -125,6 +125,7 @@ void cgit_print_atom(char *tip, char *path, int max_count, int enable_atom_diff) ctx.page.mimety

[PATCH 3/8] Skip forbidden characters.

2014-07-01 Thread zwinkau
From: Sebastian Buchwald --- html.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/html.c b/html.c index 91047ad..6037eec 100644 --- a/html.c +++ b/html.c @@ -129,7 +129,8 @@ void html_txt(const char *txt) const char *t = txt; while (t && *t) {

[PATCH 2/8] Improved readability.

2014-07-01 Thread zwinkau
From: Sebastian Buchwald --- html.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html.c b/html.c index f0ee2d6..91047ad 100644 --- a/html.c +++ b/html.c @@ -193,7 +193,7 @@ void html_attr(const char *txt) else if (c == '<')