Skip to content

\n is not an acceptable key value? #210

Open

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.

Activity

  1. added and removed on Jan 8, 2023
  2. robdennis commented on Jan 8, 2023

    @robdennis
    Member

    The next action is to see if still happens with other string literals (or something more dynamic), based on that, I'll determine if this is more bug or more documentation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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