Closed glueologist closed 2 years ago
I have added in 3.0 release skip_* parameters. I think - when you mention this transformer and behavior of the section - I should replace it with skip_section in the future. I will open issue for it. But that's for the next major release.
For the issue itself - the comments is Comments section. Every line before first section in the file is considered as part of the comment section - and it can optionally have header Comments . When I will be near PC I can check if the transformer skip it properly and section parameter is honored.
If you want to skip comments (the ones with #) in NormalizeSeparator we would need to add new skip_* parameter. It could be either skip_comment skipping all comments or skip_standalone_comments - bit verbose but a way to skip lines containing only comments.
Sounds good. I will test the Comments section tomorrow and let you know. Expect it should work.
Opened separated issue to track mentioned future changes, closing this issue for now (reopen if needed).
Trying to fine tune the run of just NormalizeSeparators on resource file with large comments. The doc on Ignored Sections shows that the only the sections listed in the 'sections' param will get transformed.
If I list all sections but comments all lines are transformed. This might be because I do not understand what is considered a comment section. If I am correct than this usage of 'sections' param is broken too.
But if sections param only has 'comments' no output is produced and return code is 0 (zero)
Orig file:
With all sections but comments. Expectation is all pipes removed with 4 spaces but large block comment is not changed.
With only comments given there is no output and RC=0
I tried the same using a configure file and the results are the same: