[augeas-devel] regex match problem even though tests pass
David Lutterkort
lutter at redhat.com
Tue Jan 19 17:28:24 UTC 2010
Hi Adam,
On Tue, 2010-01-19 at 11:13 -0500, Adam Stokes wrote:
> test Shellvars.lns get "#example:\n" =
> { "#comment" = "example:" }
The problem is a minor bug in the patch you sent yesterday: the atd file
actually contains the line "#example: \n" (note the extra space), and
the comment lens does not allow that. The solution is to change the
'del /\n/ "\n"' you had at the end of the comment lens to an 'eol'.
Attached is a new version of your patch that takes care of this and adds
a test for trailing space in comments.
David
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Shellvars-schema-change-for-commented-settings.patch
Type: text/x-patch
Size: 3110 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20100119/7a818cbe/attachment.bin>
More information about the augeas-devel
mailing list