mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
fe42abce69
In cases where CLI tidy fails to recognise HTML with errors or unknown HTML5 elements, it doesn't output any content and CSSContentParser fails. This adds the --force-output parameter so that it always outputs the input content, even if it wasn't completely fixed by tidy. It seems that tidy class in PHP already does this, so this just fixes the CLI use of tidy in CSSContentParser to be consistent. This fix can be observed on the HHVM travis builds, as tidy isn't compiled into HHVM as an extension.