Re: [Rest2web-develop] COnfigObj 4 Sections
Brought to you by:
mjfoord
From: Nicola L. <ni...@te...> - 2005-07-27 04:53:34
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > The guys who are using ConfigObj from SVN are happy to lose significant > indentation. They ask if it will be possible to ignore whitespace > between the brackets marking a section. > > This means the regex will have to look a bit more like (off the top of > my head) : > > \s*((?:[\s*)+)(.*)((?:\s*\])+)\s*(#.*)? > > and then you'll have to count square brackets rather than just matching > lengths ! I had actually thought of this, but was going to discard the idea. :-) It's good when use cases match one's intuition. B-D Ok, I'll do it this way. In the mean time, those guys could do worse than subscribing to this mailing list. They're using alpha software, after all. It's good that we have early users, mind you, I speak in their own interest. :-) Having them on board means even more attention to not breaking anything with *each one* commit. I was already careful with that, but now it's paramount. Tests are vital for this, obviously. If something breaks anyway, it would be better if there's a direct communication channel between me and them, at this point. I'll need to warn them when the config format actually changes, and they'd need to alert me of any problems, without making you the postman-in-the-middle, possibly. :-) - -- Nicola Larosa - ni...@te... Programming without a lot of ego is another way of stating the goal. Don't be so attached to your code that the idea of other people improving/changing it drives you crazy. You should *want* them to do that. -- Kirby Urner, May 2005 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5xM+Xv0hgDImBm4RAkZUAKCEoWqlsJ0h/apJHK66cgltRJ+GTQCggN0h +cxwTLTWZfIIYkTrjM0VRbg= =RaP8 -----END PGP SIGNATURE----- |