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 \