Unverified Commit 8ef66e87 authored by IKEDA Soji's avatar IKEDA Soji Committed by GitHub
Browse files

Merge pull request #413 from ikedas/issue-412 by ikedas

edit_list: Paragraph including obsoleted sub-parameter is ignored #412
parents 6c6cebd2 7bd0a509
......@@ -528,7 +528,8 @@ sub _sanitize_changes_paragraph {
# the whole parameter instance is removed.
return (_pname($ppaths) => undef)
if grep {
$pitem->{format}->{$_}->{occurrence} =~ /^1/
not $pitem->{format}->{$_}->{obsolete}
and $pitem->{format}->{$_}->{occurrence} =~ /^1/
and not defined $cur->{$_}
} _keys($pitem->{format});
# If all children are removed, remove parent.
......
......@@ -8170,6 +8170,7 @@ sub _save_list_param {
} elsif (($pinfo->{$key}{'file_format'}{$k}{'occurrence'} =~ /n$/)
&& $pinfo->{$key}{'file_format'}{$k}{'split_char'}) {
next unless $p->{$k} and @{$p->{$k}};
$fd->print(
sprintf "%s %s\n",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment