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

Check for Line Separator? #21

Closed
baknu opened this issue Sep 29, 2022 · 3 comments
Closed

Check for Line Separator? #21

baknu opened this issue Sep 29, 2022 · 3 comments

Comments

@baknu
Copy link
Collaborator

baknu commented Sep 29, 2022

Does the parser check for the required Line Separator?

@WKobes
Copy link

WKobes commented Oct 3, 2022

lines = self._content.split("\n")

If I see it correctly, it is tested implicitly. If you want to properly assess the RFC's MUST here, there should be an explicit test for the last line, since that will not be tested in this way

@DigitalTrustCenter
Copy link
Owner

With release 0.8 an error for this is added, which checks if the final line is an empty line. If this is not the case not all lines end with a line feed.

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

3 participants