[augeas-devel] [PATCH] Set indentation default to 3 spaces, as in the smb.conf shipped by the upstream
Free Ekanayaka
free at 64studio.com
Sat Aug 30 11:04:08 UTC 2008
# HG changeset patch
# User Free Ekanayaka <free at 64studio.com>
# Date 1220094156 -7200
# Node ID 08b746ffd79b7ba7b247dc138481b3c7fb279944
# Parent ca635716ee992fa0fe23067833655842dfb1532f
Set indentation default to 3 spaces, as in the smb.conf shipped by the upstream
diff -r ca635716ee99 -r 08b746ffd79b lenses/samba.aug
--- a/lenses/samba.aug Sat Aug 30 10:43:57 2008 +0200
+++ b/lenses/samba.aug Sat Aug 30 13:02:36 2008 +0200
@@ -15,6 +15,7 @@ module Samba =
let comment = IniFile.comment IniFile.comment_re IniFile.comment_default
let sep = IniFile.sep IniFile.sep_re IniFile.sep_default
+let indent = del /[ \t]*/ " "
(* Import useful INI File primitives *)
@@ -30,7 +31,7 @@ let sto_to_comment
let entry_re = /[A-Za-z0-9_.-][A-Za-z0-9 _.-]*[A-Za-z0-9_.-]/
let entry = let kw = entry_re in
- [ Util.indent
+ [ indent
. key kw
. sep
. sto_to_comment?
More information about the augeas-devel
mailing list