[Checkins] SVN: z3c.pt/trunk/ Fixed off-by-one error in interpolation routine.
Malthe Borch
mborch at gmail.com
Mon Aug 18 06:15:11 EDT 2008
Log message for revision 89966:
Fixed off-by-one error in interpolation routine.
Changed:
U z3c.pt/trunk/CHANGES.txt
U z3c.pt/trunk/src/z3c/pt/translation.py
-=-
Modified: z3c.pt/trunk/CHANGES.txt
===================================================================
--- z3c.pt/trunk/CHANGES.txt 2008-08-18 10:04:51 UTC (rev 89965)
+++ z3c.pt/trunk/CHANGES.txt 2008-08-18 10:15:11 UTC (rev 89966)
@@ -4,6 +4,8 @@
Version 1.0dev
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+- Fixed off-by-one bug in interpolation routine. [malthe]
+
- The repeat-clause should not output tail with every iteration. [malthe]
- UTF-8 encode Unicode attribute literals. [chrism]
Modified: z3c.pt/trunk/src/z3c/pt/translation.py
===================================================================
--- z3c.pt/trunk/src/z3c/pt/translation.py 2008-08-18 10:04:51 UTC (rev 89965)
+++ z3c.pt/trunk/src/z3c/pt/translation.py 2008-08-18 10:15:11 UTC (rev 89966)
@@ -368,7 +368,7 @@
t.update()
if m.start() == 0:
- self.text = text[1:m.start()+1]
+ self.text = text[2-len(m.group('prefix')):m.start()+1]
else:
self.text = text[:m.start()+1]
More information about the Checkins
mailing list