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

When allow interpolation multiline first line of values are cutted #4

Open
nfalco79 opened this issue Feb 27, 2020 · 0 comments
Open

Comments

@nfalco79
Copy link

I have a PyPI config file like this:

[distutils]
index-servers =
    pypi
    pypitest

[pypi]
repository: https://pypi.python.org/pypi
username: your_username
password: your_password

[pypitest]
repository: https://testpypi.python.org/pypi
username: your_username
password: your_password

Now I would add a new server to the index:

Ini ini = new Ini();
ini.read(file);
ini.sections().get("distutils").put("index-servers", "test\npypi\npypitest")
ini.getSections().put("test", new HashMap<String, String>());
ini.write(file2);

the files will contains:

[distutils]
index-servers =
    pypi
    pypitest

[pypi]
repository: https://pypi.python.org/pypi
username: your_username
password: your_password

[pypitest]
repository: https://testpypi.python.org/pypi
username: your_username
password: your_password

[test]

the new value of index-servers "test\npypi\npypitest" is replaced by interpolation with "\npypi\npypitest". The first row is removed.

@nfalco79 nfalco79 changed the title When allow interpolation multiline values are trimmed When allow interpolation multiline first line of values are cutted Mar 7, 2020
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