diff --git a/python/web/library/fileformat.py b/python/web/library/fileformat.py index 8825164..400e227 100644 --- a/python/web/library/fileformat.py +++ b/python/web/library/fileformat.py @@ -70,7 +70,8 @@ def read_field_value_dict(val): def read_field_value_list(val): return val.strip().split(' ') -def read_action(lines): +def read_action(text): + lines = text.split('\n') d = {} lastfield = None for line in lines: @@ -101,7 +102,7 @@ def read_action(lines): return result def read_actionlist(text): - return map(lambda x: read_action(x.strip().split('\n')), + return map(lambda x: read_action(x.strip()), text.split('\n\n')) def write_field_value_str(val):