diff options
| author | Chris Price <chris@puppetlabs.com> | 2012-10-20 00:08:06 -0700 |
|---|---|---|
| committer | Chris Price <chris@puppetlabs.com> | 2012-10-20 00:08:06 -0700 |
| commit | c2c26de9b10c3675e1044d5571e47e195a5d0167 (patch) | |
| tree | 873024609da221f418b3acf642cd8ac75de2b3c8 /lib/puppet/type | |
| parent | a5eebcfca0c1c8e8fb8130205a6ec623c8691326 (diff) | |
| download | puppet-inifile-c2c26de9b10c3675e1044d5571e47e195a5d0167.tar.gz puppet-inifile-c2c26de9b10c3675e1044d5571e47e195a5d0167.tar.bz2 | |
Respect indentation / spacing for existing sections and settings
This commit adds some cosmetic functionality. The main two
improvements are:
* We'll now pay attention to indentation within existing
sections, and when we write new settings or update
existing ones, we'll match the existing indentation.
* When modifying existing settings, the regex now captures
a greater portion of the original line and preserves it.
Basically, the original whitespacing in the line should
remain intact and only the value should be modified.
Diffstat (limited to 'lib/puppet/type')
0 files changed, 0 insertions, 0 deletions
