You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ?
The text was updated successfully, but these errors were encountered:
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
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? ;-)
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 :
With Perl parser:
{"PERL":"line1;\nline2;"}
With Python parser:
{'PERL': '\n\n line1;\nline2;'}
Do you think if this behavior should be improved ?
The text was updated successfully, but these errors were encountered: