Skip to content

Commit 2c175fa

Browse files
committed
[css2] Fixed bug that caused some #-lines not to be ignored
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401580
1 parent 9190081 commit 2c175fa

2 files changed

Lines changed: 16 additions & 16 deletions

File tree

css2/bin/Attic/utils.pm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A few common routines -*-perl-*-
22
#
33
# Bert Bos <bert@w3.org>
4-
# $Id: utils.pm,v 2.1 1998-03-17 17:06:59 bbos Exp $
4+
# $Id: utils.pm,v 2.2 1998-04-30 18:52:04 bbos Exp $
55

66
package utils;
77
require Exporter;
@@ -60,39 +60,39 @@ sub read_config {
6060
my @words = parsewords($_);
6161
if (!defined $words[0]) {next;} # Empty line
6262
for ($words[0]) {
63-
/\@contents$/o and do { # URL of ToC
63+
/^\@contents$/o and do { # URL of ToC
6464
$contents = $words[1];
6565
last;
6666
};
67-
/\@stylesheet$/o and do { # URL (and type) of style sheet
67+
/^\@stylesheet$/o and do { # URL (and type) of style sheet
6868
$stylesheet = $words[1];
6969
if (defined $words[2]) {$styletype = $words[2];}
7070
last;
7171
};
72-
/\@format$/o and do { # Set numbering style for next chapters
72+
/^\@format$/o and do { # Set numbering style for next chapters
7373
@curformat = @words;
7474
$reset = 0;
7575
last;
7676
};
77-
/\@restart$/o and do { # Reset the chapter number
77+
/^\@restart$/o and do { # Reset the chapter number
7878
$reset = int($words[1]) - 1;
7979
next;
8080
};
81-
/\@chapter$/o and do { # File with next chapter
81+
/^\@chapter$/o and do { # File with next chapter
8282
push(@chapter, ($words[1]));
8383
push(@format, ([@curformat]));
8484
push(@resetnumber, ($reset));
8585
$reset++;
8686
$lookup{$words[1]} = $#chapter;
8787
last;
8888
};
89-
/\@link$/o and do { # Additional <LINK> tags
89+
/^\@link$/o and do { # Additional <LINK> tags
9090
push(@relations, ($words[1]));
9191
push(@links, ($words[2]));
9292
push(@tonavbar, (defined $words[3] ? $words[3] : ""));
9393
last;
9494
};
95-
/\@source-extension$/o and do { # Extension of sources
95+
/^\@source-extension$/o and do { # Extension of sources
9696
$src_ext = $words[1];
9797
last;
9898
};

css2/bin/utils.pm

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# A few common routines -*-perl-*-
22
#
33
# Bert Bos <bert@w3.org>
4-
# $Id: utils.pm,v 2.1 1998-03-17 17:06:59 bbos Exp $
4+
# $Id: utils.pm,v 2.2 1998-04-30 18:52:04 bbos Exp $
55

66
package utils;
77
require Exporter;
@@ -60,39 +60,39 @@ sub read_config {
6060
my @words = parsewords($_);
6161
if (!defined $words[0]) {next;} # Empty line
6262
for ($words[0]) {
63-
/\@contents$/o and do { # URL of ToC
63+
/^\@contents$/o and do { # URL of ToC
6464
$contents = $words[1];
6565
last;
6666
};
67-
/\@stylesheet$/o and do { # URL (and type) of style sheet
67+
/^\@stylesheet$/o and do { # URL (and type) of style sheet
6868
$stylesheet = $words[1];
6969
if (defined $words[2]) {$styletype = $words[2];}
7070
last;
7171
};
72-
/\@format$/o and do { # Set numbering style for next chapters
72+
/^\@format$/o and do { # Set numbering style for next chapters
7373
@curformat = @words;
7474
$reset = 0;
7575
last;
7676
};
77-
/\@restart$/o and do { # Reset the chapter number
77+
/^\@restart$/o and do { # Reset the chapter number
7878
$reset = int($words[1]) - 1;
7979
next;
8080
};
81-
/\@chapter$/o and do { # File with next chapter
81+
/^\@chapter$/o and do { # File with next chapter
8282
push(@chapter, ($words[1]));
8383
push(@format, ([@curformat]));
8484
push(@resetnumber, ($reset));
8585
$reset++;
8686
$lookup{$words[1]} = $#chapter;
8787
last;
8888
};
89-
/\@link$/o and do { # Additional <LINK> tags
89+
/^\@link$/o and do { # Additional <LINK> tags
9090
push(@relations, ($words[1]));
9191
push(@links, ($words[2]));
9292
push(@tonavbar, (defined $words[3] ? $words[3] : ""));
9393
last;
9494
};
95-
/\@source-extension$/o and do { # Extension of sources
95+
/^\@source-extension$/o and do { # Extension of sources
9696
$src_ext = $words[1];
9797
last;
9898
};

0 commit comments

Comments
 (0)