Skip to content

Commit 11d68c3

Browse files
committed
[css2] Now properly replaces <length> by <span...>&lt;length&gt;</span>
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401988
1 parent f8cf3e0 commit 11d68c3

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

css2/bin/pextr

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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.24 2002-11-28 20:58:35 bbos Exp $
16+
# $Id: pextr,v 1.25 2002-11-28 21:27:53 bbos Exp $
1717
#
1818

1919
$PROGNAME = substr($0, rindex($0, "/") + 1);
@@ -147,9 +147,13 @@ sub format_media {
147147
}
148148

149149
sub format_compval {
150+
$values = $_[0];
151+
$values =~ s/<([^>']*)>/<span class=\"value-inst-$1\">&lt;$1&gt;<\/span>/g;
152+
$values =~ s/<[']([^']*)[']>/<span class=\"propinst-$1\">&lt;'$1'&gt;<\/span>/g;
153+
$values =~ s/inherit/<span class=\"value-inst-inherit\">inherit<\/span>/g;
150154
print output "<tr valign=baseline>";
151155
print output "<td><em>Computed&nbsp;value:</em>&nbsp;&nbsp;";
152-
print output "<td>$_[0]\n";
156+
print output "<td>$values\n";
153157
}
154158

155159

0 commit comments

Comments
 (0)