Skip to content

Commit fe7b74b

Browse files
committed
[css2] Now take sinto account the "level" at the end of the definition.
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401903
1 parent e576e29 commit fe7b74b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

css2/bin/pextr

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Extract entries from the CSS properties database
33
# The database has the following format:
44
# name;; values;; initial-value;; applies-to;;
5-
# inherited;; percentages;; media;;
5+
# inherited;; percentages;; media;; CSS-level
66
# Special characters:
77
# 1) Translate "*" into the words "all elements"
88
# 1.a) Translate "XX" into "not defined for shorthand properties"
@@ -13,7 +13,7 @@
1313
# <span class="propinst-name">&lt;'name'&gt;</span>
1414
#
1515
# Ian Jacobs - ij@w3.org (Based on work by Arnaud Le Hors)
16-
# $Id: pextr,v 1.19 2002-04-23 15:13:19 bbos Exp $
16+
# $Id: pextr,v 1.20 2002-07-30 18:02:07 bbos Exp $
1717
#
1818

1919
$PROGNAME = substr($0, rindex($0, "/") + 1);
@@ -60,6 +60,7 @@ my $applies = $_[3];
6060
my $inherited = $_[4];
6161
my $percentages = $_[5];
6262
my $media = $_[6];
63+
my $level = $_[7];
6364
#Do next three lines in src files to get headings right.
6465
print output "<div class=\"propdef\">\n";
6566
print output "<dl><dt>\n";
@@ -158,15 +159,15 @@ sub format_media {
158159

159160
# extract every possible block
160161
$_ = $buf;
161-
while (/$blockst$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt$blocket/s) {
162+
while (/$blockst$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt;;$patt$blocket/s) {
162163
# Set parameters first (before any modifications)
163164
$placeholder = $';
164165
my @names = split(/[, \t\n]+/, $1);
165166
my $name = $names[0];
166167
$output = "$path$name.srb";
167168
print "\textracting $output\n";
168169
open(output, "> $output");
169-
&format_property($1, $2, $3, $4, $5, $6, $7);
170+
&format_property($1, $2, $3, $4, $5, $6, $7, $8);
170171
close(output);
171172
$_ = $placeholder;
172173
}

0 commit comments

Comments
 (0)