Skip to content

Conversation

lhns
Copy link
Contributor

@lhns lhns commented Jan 8, 2025

Should we add a test for this? I have removed the "-w" option on diff but I think it would be better to leave that in because git crlf could be configured differently for different users making it harder for them to run the tests.
Sadly the PrettyPrinter in CycloneDX is hardcoded and always uses the systems default line endings.
Fixes #76

@raboof
Copy link
Contributor

raboof commented Jan 8, 2025

Should we add a test for this? I have removed the "-w" option on diff but I think it would be better to leave that in because git crlf could be configured differently for different users making it harder for them to run the tests.

Good point. I agree making things easy across git crlf settings makes sense. Then we can have a dedicated test that checks for line endings (perhaps just searching for crlf strings in the output, ignoring the 'real' contents?)

Sadly the PrettyPrinter in CycloneDX is hardcoded and always uses the systems default line endings.

Maybe add an issue for this upstream?

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.

Inconsistent whitespace on Windows

2 participants