Skip to content
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

Make title row of generated CSV file have correct number of columns #904

Merged
merged 2 commits into from
Jun 14, 2018

Conversation

lucassz
Copy link
Contributor

@lucassz lucassz commented Jun 14, 2018

Addresses #885. It may be that the minified file has to be updated too, although I'm not sure if it's actually being used.

}
var commas = (output_.split('\n')[0].match(/,/g) || []).join('');
var output = '"' + str + '"' + commas + '\n' + output_;

var url = window.location.href;
Copy link
Collaborator

Choose a reason for hiding this comment

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

@lucassz I'm having trouble figuring out what's going on here. Would you mind adding a comment or two?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added now, hope that's clearer. The first line is substantially different from the last line because the first line is a caption, whereas the last line actually is part of the body of the table. This manually makes it as though the caption were another row.

@hdoupe
Copy link
Collaborator

hdoupe commented Jun 14, 2018

LGTM. Thanks @lucassz

@hdoupe hdoupe merged commit 4a070e6 into ospc-org:master Jun 14, 2018
@lucassz lucassz deleted the csv branch June 15, 2018 13:32
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.

2 participants