Skip to content

\n is not an acceptable key value? #210

@keko950

Description

@keko950

Hi! Im having some troubles with multilines values. Im trying to add a key that has as content multiple \n but it doesn't work and im not sure why.

You can reproduce the error with this simple code:
a = configobj.ConfigObj(infile=['a="""line1 \n line2 \n line3"""'])

lib/python3.8/site-packages/configobj.py", line 1318, in _load
    raise error
configobj.ParseError: Invalid line ('a="""line1 \n line2 \n line3"""') (matched as neither section nor keyword) at line 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions