Make this work with newer perl versions.
Ok: mrg@
This commit is contained in:
parent
122c565fcd
commit
6ab712103f
4
gnu/dist/gettext/gettext-tools/doc/texi2html
vendored
4
gnu/dist/gettext/gettext-tools/doc/texi2html
vendored
@ -1532,7 +1532,7 @@ sub update_sec_num {
|
||||
$level--; # here we start at 0
|
||||
if ($name =~ /^appendix/) {
|
||||
# appendix style
|
||||
if (defined(@appendix_sec_num)) {
|
||||
if (@appendix_sec_num) {
|
||||
&incr_sec_num($level, @appendix_sec_num);
|
||||
} else {
|
||||
@appendix_sec_num = ('A', 0, 0, 0);
|
||||
@ -1540,7 +1540,7 @@ sub update_sec_num {
|
||||
return(join('.', @appendix_sec_num[0..$level]));
|
||||
} else {
|
||||
# normal style
|
||||
if (defined(@normal_sec_num)) {
|
||||
if (@normal_sec_num) {
|
||||
&incr_sec_num($level, @normal_sec_num);
|
||||
} else {
|
||||
@normal_sec_num = (1, 0, 0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user