W3C home > Mailing lists > Public > www-validator@w3.org > October 2012

Re: Recognise line returns in content to validate when executing from the command line

From: Ville Skyttä <ville.skytta@iki.fi>
Date: Wed, 31 Oct 2012 21:22:22 +0200
Message-ID: <50917A6E.9000305@iki.fi>
To: www-validator@w3.org
On 2012-10-18 11:34, Jon Cram wrote:

> I'm looking to increase the HTML validation throughput (currently at 
> 6000 HTML validations per hour) by calling the main validator script 
> from the command line so as to avoid the overhead of spinning up Apache 
> to handle validations.

That might help, but then again running the validator with mod_perl
should be even faster... (preloaded perl interpreter and bunch of
modules). There are examples how to do that in the config files shipped
with the validator.

> What could I try to have line returns accepted in the fragment argument?

Try %0A instead of \n and %0D instead of \r, or depending on your shell,
something like this should work (at least it does with bash for me):

Received on Wednesday, 31 October 2012 19:22:53 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:07 UTC