|
1 | 1 | # A few common routines -*-perl-*- |
2 | 2 | # |
3 | 3 | # Bert Bos <bert@w3.org> |
4 | | -# $Id: utils.pm,v 2.2 1998-04-30 18:52:04 bbos Exp $ |
| 4 | +# $Id: utils.pm,v 2.3 2002-08-02 18:59:42 bbos Exp $ |
5 | 5 |
|
6 | 6 | package utils; |
7 | 7 | require Exporter; |
8 | 8 | @ISA = qw(Exporter); |
9 | | -@EXPORT = qw(readfile writefile read_config $contents $stylesheet |
10 | | - $styletype @chapter @resetnumber @format %lookup $chapno @relations |
| 9 | +@EXPORT = qw(readfile writefile read_config $contents @stylesheet |
| 10 | + @styletype @chapter @resetnumber @format %lookup $chapno @relations |
11 | 11 | @links @tonavbar $src_ext); |
12 | 12 |
|
13 | 13 | # @EXPORT_OK = qw(parsewords); |
14 | 14 |
|
15 | 15 |
|
16 | 16 |
|
17 | 17 | $contents = ''; # File containing ToC |
18 | | -$stylesheet = ''; # URL of style sheet |
19 | | -$styletype = ''; # MIME type of style sheet |
| 18 | +@stylesheet = (); # URLs of style sheets |
| 19 | +@styletype = (); # MIME types of style sheets |
20 | 20 | @chapter = (); # Array of chapter files |
21 | 21 | @resetnumber = (); # For each chapter: the chapter number - 1 |
22 | 22 | @format = (); # For each chapter: list of number formats |
@@ -65,8 +65,8 @@ sub read_config { |
65 | 65 | last; |
66 | 66 | }; |
67 | 67 | /^\@stylesheet$/o and do { # URL (and type) of style sheet |
68 | | - $stylesheet = $words[1]; |
69 | | - if (defined $words[2]) {$styletype = $words[2];} |
| 68 | + push(@stylesheet, ($words[1])); |
| 69 | + if (defined $words[2]) {push(@styletype, ($words[2]));} |
70 | 70 | last; |
71 | 71 | }; |
72 | 72 | /^\@format$/o and do { # Set numbering style for next chapters |
|
0 commit comments