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

Initial newline and whitespaces ignored by perl parser but not by python parser #38

Open
Sumit3 opened this issue Jan 4, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@Sumit3
Copy link

Sumit3 commented Jan 4, 2019

Perl Config::General module ignores the initial newline characters and white-spaces in the beginning of heredoc but this python parser doesn't. eg:

Config :

PERL <<END_OF_CODE


    line1;
line2;
END_OF_CODE

With Perl parser:
{"PERL":"line1;\nline2;"}

With Python parser:
{'PERL': '\n\n line1;\nline2;'}

Do you think if this behavior should be improved ?

@Sumit3 Sumit3 changed the title Initail newline and whitespaces ignored by perl parser but not by python parser Initial newline and whitespaces ignored by perl parser but not by python parser Jan 4, 2019
@etingof
Copy link
Owner

etingof commented Aug 18, 2019

That should be easy to fix by adding an option that leads to stripping white spaces. I am tempted to ask @sydneyli if this is something that might come up soon? ;-)

@etingof etingof added the bug Something isn't working label Nov 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants