Fix indent bug for newly created directives in section bf062d8228 https://github.com/virtualmin/virtualmin-gpl/pull/199

This commit is contained in:
Ilia Rostovtsev
2020-08-23 15:18:24 +03:00
parent 8dbaf0e02f
commit 7fd281ae21

View File

@@ -305,6 +305,7 @@ $section->{'eline'} = $section->{'line'} + scalar(@newlines) - 1;
my $i = 1;
foreach my $m (@{$section->{'members'}}) {
$m->{'line'} = $m->{'eline'} = $section->{'line'} + $i++;
$m->{'space'} = " ";
$m->{'file'} = $section->{'file'};
$m->{'sectionname'} = $section->{'name'};
$m->{'sectionvalue'} = $section->{'value'};