From 3d84b65083ccb2cf525fb7959f1a67dbec91631d Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Sep 24 2013 17:26:59 +0000 Subject: Update xhtml_setCleanUp.sh file. - Previously, there was no verification for xhtml transitional documents or definition (note the double ??). This update changes the xhtml_setCleanUp file to verify existence of transitional documents and definition. --- diff --git a/Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setCleanUp.sh b/Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setCleanUp.sh index b48b813..95de440 100755 --- a/Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setCleanUp.sh +++ b/Automation/Modules/Tuneup/Modules/Xhtml/xhtml_setCleanUp.sh @@ -27,7 +27,8 @@ function xhtml_setCleanUp { - grep '\-//W3C//DTD XHTML 1.0 Strict//EN' ${FILE} > /dev/null + grep ' /dev/null \ + || egrep '\-//W3C//DTD XHTML 1.0 (Strict|Transitional)//EN' ${FILE} > /dev/null if [[ $? -eq 0 ]];then /usr/bin/xmllint --xmlout --format --noblanks \ --nonet --nowarning \