summaryrefslogtreecommitdiffstats
path: root/emulators/vice/files/patch-doc_html_texi2html
blob: 3400bb8ea3063a2f5b3ec4d0f4db0564183445aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- doc/html/texi2html.orig	2008-03-30 15:04:15 UTC
+++ doc/html/texi2html
@@ -1557,7 +1557,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);
@@ -1565,7 +1565,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);
OpenPOWER on IntegriCloud