From 9197ff646c3033402472838897ea9a1c93a0533f Mon Sep 17 00:00:00 2001 From: Fil <fil@rezo.net> Date: Tue, 24 May 2005 21:43:58 +0000 Subject: [PATCH] =?UTF-8?q?exp=C3=A9rimental=20:=20define('=5FTIDY=5FOPTIO?= =?UTF-8?q?NS',=20'--output-html=20true');=20=20(Paolo)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ecrire/inc_tidy.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/ecrire/inc_tidy.php b/ecrire/inc_tidy.php index 84b300770a..f190e3cb5b 100644 --- a/ecrire/inc_tidy.php +++ b/ecrire/inc_tidy.php @@ -127,15 +127,21 @@ function traite_xhtml ($buffer) { $tmp = "$nomfich.".@getmypid().".tmp"; ecrire_fichier($tmp, $buffer, true); # ecrire meme en mode preview + // Experimental : on peut definir ses propres options tidy + if (!defined('_TIDY_OPTIONS')) + $options = "--output-xhtml true"; # a.k.a. -asxhtml + else + $options = _TIDY_OPTIONS; + $c = _TIDY_COMMAND ." --tidy-mark false" - ." --char-encoding $enc_char" ." --quote-nbsp false" ." --show-body-only false" ." --indent true" ." --wrap false" - ." --output-xhtml true" ." --add-xml-decl false" + ." --char-encoding $enc_char" + ." ".$options ." -m $tmp" ." 2>&1"; spip_log(nettoyer_uri(), 'tidy'); -- GitLab