Skip to content

Empty comments get dropped by the serializer #119

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

Closed
Pike opened this issue Aug 1, 2019 · 0 comments
Closed

Empty comments get dropped by the serializer #119

Pike opened this issue Aug 1, 2019 · 0 comments

Comments

@Pike
Copy link
Contributor

Pike commented Aug 1, 2019

A simple fragment like

## This is a group

g1 = one
g2 = two

##

not = in that group

doesn't serialize right. The reason is the side note in https://docs.python.org/3/library/stdtypes.html#str.splitlines, which mentions that splitlines returns an empty list for an empty string instead of [""]. Pfff.

@Pike Pike closed this as completed in da6a6a8 Aug 1, 2019
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

1 participant