- From: Ville Skytta <ville@dev.w3.org>
- Date: Sat, 08 Jan 2005 22:18:07 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/validator/httpd/cgi-bin
In directory hutz:/tmp/cvs-serv17971/httpd/cgi-bin
Modified Files:
check
Log Message:
Don't generate data for outline, source or parse tree output if it's not
going to be shown.
Index: check
===================================================================
RCS file: /sources/public/validator/httpd/cgi-bin/check,v
retrieving revision 1.365
retrieving revision 1.366
diff -u -d -r1.365 -r1.366
--- check 8 Jan 2005 21:10:10 -0000 1.365
+++ check 8 Jan 2005 22:18:05 -0000 1.366
@@ -896,14 +896,13 @@
$T->param(file_errors => &report_errors($File));
}
- #
- # todo: parsetree() is quite expensive for non-trivial documents, it
- # should only be called if the user actually requested the parse tree.
-
$T->param(file_warnings => $File->{Warnings});
- $T->param(file_outline => &outline($File));
- $T->param(file_source => &source($File));
- $T->param(file_parsetree => &parsetree($File));
+ $T->param(file_outline => &outline($File))
+ if $T->param('opt_show_outline');
+ $T->param(file_source => &source($File))
+ if $T->param('opt_show_source');
+ $T->param(file_parsetree => &parsetree($File))
+ if $T->param('opt_show_parsetree');
# &show_esis($File) if $File->{Opt}->{'Show ESIS'};
# &show_errors($File) if $File->{Opt}->{'Show Errors'};
Received on Saturday, 8 January 2005 22:18:09 UTC