From b217886ffccc69797ab89ec09f9fdae2967b8bb5 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 5 May 2008 22:06:21 +0200 Subject: [PATCH] added author information and fixed small off-by-one bug --HG-- branch : trunk --- AUTHORS | 1 + jinja2/_speedups.c | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index fc07fba..29835e3 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 d8df390..3c74bba 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; -- 2.26.2