Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

Commit

Permalink
Parses options using newlines instead of commas
Browse files Browse the repository at this point in the history
  • Loading branch information
Denis Krienbühl committed Jun 21, 2018
1 parent f1e70aa commit a460985
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.rst
@@ -1,5 +1,9 @@
Changelog
---------

- Parses options using newlines instead of commas.
[href]

0.33.4 (2018-06-21)
~~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion onegov/form/parser/core.py
Expand Up @@ -716,7 +716,7 @@ def create(cls, field, identifier, parent=None, fieldset=None):

def parse(self, value):
if isinstance(value, str):
return [v.strip() for v in value.split(',')]
return [v.strip() for v in value.split('\n')]

return value

Expand Down

0 comments on commit a460985

Please sign in to comment.