Skip to content

Commit

Permalink
add leading space to return value of Input.addatts for backward-compa…
Browse files Browse the repository at this point in the history
…tibility (tx Martin Borgert)
  • Loading branch information
anandology committed Dec 18, 2009
1 parent ed4eba1 commit c78e4bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/form.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit c78e4bd

Please sign in to comment.