Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@mpsonntag
Copy link
Contributor

@mpsonntag mpsonntag commented Jul 24, 2018

  • This PR closes VersionConverter encoding problem #288, fixing that an XML file with an UTF-8 encoding file header was not being properly parsed by the VersionConverter XML parser.
  • The PR also addresses issue version converter: incomplete string conversion #295 which occurred in the xmlparser: When reading a single string value from csv which contains commata, it now remains a single value and is not split up at each comma.
    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.
  • The travis build for macOS with python 3.5 was removed, since the pyyaml dependency was failing for python 3.5.

@coveralls
Copy link

coveralls commented Jul 24, 2018

Coverage Status

Coverage increased (+0.01%) to 81.777% when pulling 46a4fbb on mpsonntag:fixConverter into a75d1db on G-Node:master.

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]

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor Author

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. ;)

Copy link
Member

@jgrewe jgrewe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch!

@achilleas-k achilleas-k merged commit 04b408f into G-Node:master Jul 25, 2018
@mpsonntag mpsonntag deleted the fixConverter branch July 25, 2018 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VersionConverter encoding problem

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.