diff genshi/filters/i18n.py @ 667:c9a084ffaee6 trunk

Fix case where attributes weren't properly wrapped in an `Attrs` instance if one or more of them were translated by the I18n filter, potentially breaking things further down the chain. Closes #162.
author cmlenz
date Tue, 11 Dec 2007 21:17:18 +0000
parents 23a4784203ae
children 3b8a38fcc1ab ea46fb523485
line wrap: on
line diff
--- a/genshi/filters/i18n.py
+++ b/genshi/filters/i18n.py
@@ -174,7 +174,7 @@
                         changed = True
                     new_attrs.append((name, value))
                 if changed:
-                    attrs = new_attrs
+                    attrs = Attrs(new_attrs)
 
                 if msgbuf:
                     msgbuf.append(kind, data, pos)
Copyright (C) 2012-2017 Edgewall Software