52,54c52
<             wrapper = ('<textarea', '</textarea>\n')
<         if fields['type'] == '"select"':
<             wrapper = ('<select', '</select>\n')
---
>             wrapper = ('<textarea', '></textarea>\n')
57d54
<         special_value = ''
60,70c57,58
<             if key == 'text':
<                 special_value += '>' + val[1:-1]
<                 continue
<             if key == 'options':
<                 special_value += '>\n'
<                 for opt in val[1:-1].split(','):
<                     special_value += '<option value="%s">%s</option>\n' % (opt, opt)
<                 continue
<             else:
<                 result += ' %s=%s' % (key, val)
<         result += special_value + wrapper[1]
---
>             result = '%s %s=%s' % (result, key, val)
>         result = result + wrapper[1]
