[augeas-devel] [PATCH 2 of 2] Allow spaces before and after "}" to close a service
Raphael Pinson
raphink at gmail.com
Tue Aug 12 16:25:11 UTC 2008
# HG changeset patch
# User Raphael Pinson <raphink at gmail.com>
# Date 1218558158 -7200
# Node ID eb214a8856457362373b9ac0899f2982eb894854
# Parent df9cfa106307e533defb0159902375a7927c0d8a
Allow spaces before and after "}" to close a service
diff -r df9cfa106307 -r eb214a885645 lenses/xinetd.aug
--- a/lenses/xinetd.aug Tue Aug 12 18:17:30 2008 +0200
+++ b/lenses/xinetd.aug Tue Aug 12 18:22:38 2008 +0200
@@ -70,7 +70,7 @@ module Xinetd =
(* would simply be prohibitively large. *)
let body (attr:lens) = Util.del_str "\n{\n"
. (comment|attr)*
- . Util.del_str "}\n"
+ . del /[ \t]*}[ \t]*\n/ "}\n"
(* It would be nice if we could use the directories given in include and *)
(* includedir directives to parse additional files instead of hardcoding *)
More information about the augeas-devel
mailing list