Blank space after heredoc terminator is causing incorrect parsing
Config:
# comment
TAG << MYTAG
some line
MYTAG # comment2
<tag>
key value
</tag>
Please note extra space after second MYTAG keyword.
with python parser:
{}
Also for config:
TAG << MYTAG
some line
MYTAG # comment
I am getting
raise ApacheConfigError("Parser error at '%s'" % p.value if p else 'Unexpected EOF')apacheconfig.error.ApacheConfigError: Unexpected EOF
Can you please check?
Oh, may be Perl approach is more fragile... At least with bash the delimiter must be alone not be terminating line...
We could probably introduce an option to support Perl behavior conditionally...
That would be great if we can have Perl behavior working as well.
I am also facing similar issue. Is the option to support Perl behavior added ?
Have we introduced any option to support this ?