summaryrefslogtreecommitdiff
path: root/lib/Asterisk/config.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Asterisk/config.pm')
-rwxr-xr-xlib/Asterisk/config.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Asterisk/config.pm b/lib/Asterisk/config.pm
index 01211b8..14a386b 100755
--- a/lib/Asterisk/config.pm
+++ b/lib/Asterisk/config.pm
@@ -544,7 +544,7 @@ my @NEW;
if (defined $section_name && $one_case->{'section'} eq $section_name && $one_case->{'point'} eq 'up') {
push(@NEW,&_format_convert($one_case->{'data'})); $auto_save=1;
} elsif (defined $section_name && $one_case->{'section'} eq $section_name && $one_case->{'point'} eq 'down') {
- push(@NEW,$one_line); $one_line=&_format_convert($one_case->{'data'}); $auto_save=1;
+ push(@NEW,$one_line); $one_line = join "\n", &_format_convert($one_case->{'data'}); $auto_save=1;
# for foot matched section
} elsif (defined $section_name && $one_case->{'section'} eq $section_name && $one_case->{'point'} eq 'foot') {
$save_tmpmem=1;
@@ -554,7 +554,7 @@ my @NEW;
# for foot 发现匹配的section已经到达整个结尾
}
if ($save_tmpmem == 1 && $offset==$#{$data}) {
- push(@NEW,$one_line); $one_line=&_format_convert($one_case->{'data'});
+ push(@NEW,$one_line); $one_line = join "\n", &_format_convert($one_case->{'data'});
$auto_save=1; $save_tmpmem=0;
}