From: Armin Ronacher Date: Mon, 5 May 2008 20:06:21 +0000 (+0200) Subject: added author information and fixed small off-by-one bug X-Git-Tag: 2.0rc1~93 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b217886ffccc69797ab89ec09f9fdae2967b8bb5;p=thirdparty%2Fjinja.git added author information and fixed small off-by-one bug --HG-- branch : trunk --- diff --git a/AUTHORS b/AUTHORS index fc07fbaa..29835e3d 100644 --- a/AUTHORS +++ b/AUTHORS @@ -6,3 +6,4 @@ Other contributors (as mentionend in :copyright:s) are: - Georg Brandl - Lawrence Journal-World. - Bryan McLemore +- Mickaël Guérin diff --git a/jinja2/_speedups.c b/jinja2/_speedups.c index d8df3904..3c74bbae 100644 --- a/jinja2/_speedups.c +++ b/jinja2/_speedups.c @@ -7,7 +7,7 @@ * traceback. If the speedups module is not compiled a ctypes implementation * is used. * - * :copyright: 2008 by Armin Ronacher. + * :copyright: 2008 by Armin Ronacher, Mickaël Guérin. * :license: BSD. */ @@ -28,7 +28,7 @@ init_constants(void) escaped_chars_delta_len['"'] = 5; escaped_chars_repl['"'] = UNICHR("""); - escaped_chars_delta_len['&'] = 3; + escaped_chars_delta_len['&'] = 4; escaped_chars_repl['&'] = UNICHR("&"); escaped_chars_delta_len['<'] = 3;