rjc
rjc
Ping.
I've been hit by this issues today, myself. The easiest way out that I can see is, adjusting the documentation and mentioning the extra (superfluous) spaces around the separator but,...
As it stands, `ini` currently only works with a _specific_ type of INI files, i.e.: ones with sections in square brackets (`[]`), etc. I just tried to managing `/etc/default/exim4` on...
@galet If I understand correctly, what you are proposing is: ``` - separator: ' = ' ``` as in **three** characters - `=` and a `space` on either side? With...
A real life `my.cnf` example: ``` [ndbd] connect-string=ndb_mgmd.mysql.com [ndb_mgm] connect-string=ndb_mgmd.mysql.com ``` Now, I'd like to manage the former **and** the latter. Can `file.replace` do that easily?
IMVHO, the `separator` should **always** be verbatim, **without** spaces around it, i.e.: ``` ' =' '= ' ' = ' '=' '=>' [...] ``` By all means, make the default...
This was just an example to illustrate the fact that `regex` isn't always the answer, **not** an example "whitespace around the separator or not" ;^)
> The way I see it, applications will either support the usual ini format that permits whitespace around the option separator[...] From experience, there is **no** _usual_ [INI format](https://en.wikipedia.org/wiki/INI_file#Whitespace) and...