-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix VersionConverter encoding issue #296
Conversation
Closes G-Node#295 When reading a single string value from csv which is containing commata, make sure, that it still remains a single string value and is not split up into a multi value at the comma positions.
When writing multiple values to csv make sure that whitespaces and carriage return linefeeds as well as quotation marks that have been added by the csv writer are removed before returning the csv string.
# is part of the value and must not be used to | ||
# split up the string. | ||
return [value_string] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaSprenger caught that one, I'm just taking it one step further. ;)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good catch!
Further, any leading or trailing whitespaces are removed from any string values when it is written to
csv. Along the same lines, multiple values that are saved to file via the
version_converter
do not contain leading whitespaces any longer.