From 33c53a13b1558614efbab061ae6cf1b99a639ba7 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 13 2013 01:39:33 +0000 Subject: Update asciidoc_setXhtmlRendition function from render module. - Previously, xhtml files were produced as result of xsltproc transformation and no markup cleaning was performed after it. As result, the final html output appeared unindented. This update changes the asciidoc_setXhtmlRendition function to use Dave Raggett's tidy program to indent the html output and perform markup cleaning. --- diff --git a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh index bbe02e8..ababb92 100755 --- a/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh +++ b/Automation/Modules/Render/Modules/Files/Modules/Asciidoc/asciidoc_setXhtmlRendition.sh @@ -68,6 +68,7 @@ function asciidoc_setXhtmlRendition { for RENDER_PAGE in ${RENDER_PAGES};do /usr/bin/xsltproc -o ${LOCATION} --nonet \ ${DOCBOOK_XSL}/docbook2xhtml-${RENDER_PAGE}.xsl ${TARGET_INSTANCES[${COUNTER}]} + /usr/bin/tidy -asxhtml -utf8 -q -i -o ${LOCATION} ${LOCATION} done }