[augeas-devel] [PATCH] Add CR as a white space char in RX.space_in

Francis Giraldeau francis.giraldeau at gmail.com
Wed Mar 27 18:07:10 UTC 2013


CR is used in the IniFile lens as of EOL. To avoid concat ambig between
IniFile.store_to_eol and IniFile.eol, CR has to be added to Rx.space_in. This
change do not break any existing lens in the repository.
---
 lenses/rx.aug |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lenses/rx.aug b/lenses/rx.aug
index 6130b9c..f4f2d6b 100644
--- a/lenses/rx.aug
+++ b/lenses/rx.aug
@@ -36,7 +36,7 @@ let cl_or_opt_space = cl | opt_space
 
 (* Variable: space_in
    A string which not starting or ending with a space *)
-let space_in  = /[^ \t\n].*[^ \t\n]|[^ \t\n]/
+let space_in  = /[^ \r\t\n].*[^ \r\t\n]|[^ \t\n\r]/
 
 (* Variable: no_spaces
    A string with no spaces *)
-- 
1.7.10.4




More information about the augeas-devel mailing list