Subject: | Comment (#) character preceding EOL on a <block> line causes parse failure |
Example:
<foo> #
bar = baz
</foo>
causes:
Config::General: EndBlock "</foo>" has no StartBlock statement (level:
1, chunk 3)!
I have attached a proposed patch to General.pm and cfg.6 for your
consideration.
This is perl, v5.10.0 built for x86_64-linux-gnu-thread-multi
Linux hostname 2.6.27-11-generic #1 SMP Thu Jan 29 19:28:32 UTC 2009
x86_64 GNU/Linux
Subject: | cfg.6.patch |
10a11,14
>
> <foo> #
> bar = baz
> </foo>
Subject: | General.pm.patch |
612c612
< s/(?<!\\)#.+$//;
---
> s/(?<!\\)#.*$//;