# HG changeset patch # User Paul Boddie # Date 1463068270 -7200 # Node ID 318433c9a1c21070726d67a17ab3082b8bf1335f # Parent 236701c67ebc3f88134b2ef9c35287f017fec4c0 Fixed output of quoted, multivalued parameters/attributes. diff -r 236701c67ebc -r 318433c9a1c2 vCalendar.py --- a/vCalendar.py Thu May 12 16:09:54 2016 +0200 +++ b/vCalendar.py Thu May 12 17:51:10 2016 +0200 @@ -3,7 +3,8 @@ """ Parsing of vCalendar and iCalendar files. -Copyright (C) 2008, 2009, 2011, 2013, 2014 Paul Boddie +Copyright (C) 2008, 2009, 2011, 2013, 2014, 2015, + 2016 Paul Boddie This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software @@ -189,12 +190,13 @@ for param_name, param_value in parameters.items(): if param_name in QUOTED_PARAMETERS: - param_value = self.encode_quoted_parameter_value(param_value) separator = '","' else: separator = "," if param_name in MULTIVALUED_PARAMETERS: param_value = separator.join(param_value) + if param_name in QUOTED_PARAMETERS: + param_value = self.encode_quoted_parameter_value(param_value) encoded_parameters[param_name] = param_value return encoded_parameters