File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -217,12 +217,14 @@ sub header {
217217 die " Error: missing document URL or title.\n " unless ($url && $title );
218218
219219 # Process URL to get status, date, shorname
220- die " Error: Draft URL wrong format.\n " unless
221- ($url =~ / ([A-Z]{2})-([a-z0-9-]+)-(\d {8})/ );
222- $shortname = $2 unless ($shortname );
223- my ($status , $date ) = ($1 , $3 );
224- $status = ' LCWD' if (' WD' eq $status && $inFile =~ / [lL][cC]/ );
225- $date = " $1 -$2 -$3 " if ($date =~ / (\d {4})(\d {2})(\d {2})/ );
220+ my $status = ' Draft' ;
221+ my $date = $1 if ($inFile =~ / ([\d -]+)/ );
222+ if ($url =~ / ([A-Z]{2})-([a-z0-9-]+)-(\d {8})/ ) {
223+ $shortname = $2 unless ($shortname );
224+ ($status , $date ) = ($1 , $3 );
225+ $status = ' LCWD' if (' WD' eq $status && $inFile =~ / [lL][cC]/ );
226+ $date = " $1 -$2 -$3 " if ($date =~ / (\d {4})(\d {2})(\d {2})/ );
227+ }
226228
227229 # Print it all out
228230 print OUT <<XXX ;
@@ -245,7 +247,7 @@ sub header {
245247
246248<p>Dated Draft: <a href="$url ">$url </a>
247249
248- <p>Editor's Draft: <a href="http://dev.w3 .org/csswg/ $shortname /">http://dev.w3 .org/csswg /$shortname /</a>
250+ <p>Editor's Draft: <a href="http://drafts.csswg .org/$shortname /">http://drafts.csswg .org/$shortname /</a>
249251
250252<p>The following color coding convention is used for comments:</p>
251253
You can’t perform that action at this time.
0 commit comments