<div dir="ltr"><br><br><div class="gmail_quote">On Fri, Aug 29, 2008 at 5:37 PM, Free Ekanayaka <span dir="ltr"><<a href="mailto:free@64studio.com">free@64studio.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Raphaël,<br>
<div class="Ih2E3d"><br>
|--==> On Fri, 29 Aug 2008 13:42:05 +0200, "Raphaël Pinson" <<a href="mailto:raphink@gmail.com">raphink@gmail.com</a>> said:<br>
<br>
  >><br>
  >>If introducing ugly _noindent declarations is the only viable way at<br>
  >>the moment, but it makes inifile.aug enough flexible to deal with all<br>
  >>kind of INI files, then I would go for it. Of course Better<br>
  >>alternatives are welcome.<br>
  >><br>
<br>
</div>  RP> Just saw another reason for not introducing indent in inifile.aug : some<br>
  RP> inifiles use indentation for multi-line values, like<br>
<br>
<br>
  RP> key = this is a long<br>
  RP>    text that belongs<br>
  RP>    to the same field<br>
<br>
<br>
  RP> This kind of entries are very tricky to deal with (this is why I haven't put<br>
  RP> my hands on it yet) because ideally we would like to get<br>
<br>
  RP> { "key" = "this is a long\ntext that belongs\nto the same field" }<br>
<br>
<br>
  RP> but all I can think of getting is<br>
<br>
  RP> { "key"<br>
  RP>    { "1" = "this is a long" }<br>
  RP>    { "2" = "text that belongs" }<br>
  RP>    { "3" = "to the same field" } }<br>
<br>
  RP> or<br>
<br>
  RP> { "key" = "this is a long\n   text taht belongs\n   to the same field" }<br>
<br>
<br>
  RP> which forces users to indent their value in a not very useful way.<br>
  RP> Furthermore, I believe adding a line to such a field should use the same<br>
  RP> indentation as the previous lines, which is currently not possible in<br>
  RP> augeas.<br>
<br>
I see your point, I think I have no other option than cloning<br>
inifile.aug then, and possibly wait for this kind of issues to get<br>
eventually fixed.<br>
</blockquote><div><br><br>Well you can clone the minimal parts of the lenses that you need to refine. This is what I do in mysql.aug for example (see patch from a few hours ago) since I need to support flags aswell as key/value pairs.<br>
<br><br>++<br><br><br>Raphaël<br></div></div><br></div>