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

Using --csv with stdout includes extra line #181

Closed
DavidBiesack opened this issue Oct 10, 2018 · 5 comments
Closed

Using --csv with stdout includes extra line #181

DavidBiesack opened this issue Oct 10, 2018 · 5 comments

Comments

@DavidBiesack
Copy link

If one runs

license-checker --csv --out licenses.csv

the output contains no blank lines.
However, when running

license-checker --csv

the output has an extra blank line at the end. This may confuse downstream consumers which which to use pipelines/std out and do not expect or allow blank lines

@davglass
Copy link
Owner

I see the --csv adding an extra line, that's pretty easy to patch..

But I don't see the --out not adding line breaks. What OS? On my Mac and Linux machines it's fine as it's using \n under the hood.

@DavidBiesack
Copy link
Author

I'm running on Mac.
I get line breaks between records for --csv --out file ok. I just don't get the extra blank line at the end -- i.e., license-checker is producing expected output when using --out (output contains no blank lines.)

@davglass
Copy link
Owner

Ah, gotcha.. I read that as you didn't get any line breaks with --out and that was confusing me..

@davglass
Copy link
Owner

Published in license-checker@24.0.1

@DavidBiesack
Copy link
Author

thanks for the quick fix! works great, and simplifies my command pipelines.

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

No branches or pull requests

2 participants