added author information and fixed small off-by-one bug
authorArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 May 2008 20:06:21 +0000 (22:06 +0200)
committerArmin Ronacher <armin.ronacher@active-4.com>
Mon, 5 May 2008 20:06:21 +0000 (22:06 +0200)
--HG--
branch : trunk

AUTHORS
jinja2/_speedups.c

diff --git a/AUTHORS b/AUTHORS
index fc07fbaa4624a4b1be0c195341dbfc4b08a0628d..29835e3d7c8699fd8fdff01c9c9f823096a3d2e3 100644 (file)
--- 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 <kael@crocobox.org>
index d8df3904f70faae5255ee36d16cdfa14f832e946..3c74bbae60ddbe0869e7194a35757eda06f4776f 100644 (file)
@@ -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("&quot;");
 
-       escaped_chars_delta_len['&'] = 3;
+       escaped_chars_delta_len['&'] = 4;
        escaped_chars_repl['&'] = UNICHR("&amp;");
        
        escaped_chars_delta_len['<'] = 3;