Skip to content

Empty comments get dropped by the serializer #119

Closed
@Pike

Description

@Pike

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions