Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gettext/gettext-tools/doc Make this work with newer...



details:   https://anonhg.NetBSD.org/src/rev/dcfda5a305b1
branches:  trunk
changeset: 809681:dcfda5a305b1
user:      martin <martin%NetBSD.org@localhost>
date:      Mon Jul 27 18:09:27 2015 +0000

description:
Make this work with newer perl versions.
Ok: mrg@

diffstat:

 gnu/dist/gettext/gettext-tools/doc/texi2html |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 4851d14ec59a -r dcfda5a305b1 gnu/dist/gettext/gettext-tools/doc/texi2html
--- a/gnu/dist/gettext/gettext-tools/doc/texi2html      Mon Jul 27 15:46:03 2015 +0000
+++ b/gnu/dist/gettext/gettext-tools/doc/texi2html      Mon Jul 27 18:09:27 2015 +0000
@@ -1532,7 +1532,7 @@
     $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 @@
        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);



Home | Main Index | Thread Index | Old Index