Skip to content
Browse files

add leading space to return value of Input.addatts for backward-compa…

…tibility (tx Martin Borgert)
  • Loading branch information...
1 parent ed4eba1 commit c78e4bde9448c31d1b4f0a2d5a2fca5b09bc5f85 @anandology anandology committed Dec 18, 2009
Showing with 2 additions and 1 deletion.
  1. +2 −1 web/form.py
View
3 web/form.py
@@ -164,7 +164,8 @@ def rendernote(self, note):
else: return ""
def addatts(self):
- return str(self.attrs)
+ # add leading space for backward-compatibility
+ return " " + str(self.attrs)
class AttributeList(dict):
"""List of atributes of input.

0 comments on commit c78e4bd

Please sign in to comment.
Something went wrong with that request. Please try again.