Return-Path: Delivered-To: apmail-forrest-dev-archive@www.apache.org Received: (qmail 33939 invoked from network); 9 Mar 2009 12:32:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Mar 2009 12:32:10 -0000 Received: (qmail 37028 invoked by uid 500); 9 Mar 2009 12:32:10 -0000 Delivered-To: apmail-forrest-dev-archive@forrest.apache.org Received: (qmail 36989 invoked by uid 500); 9 Mar 2009 12:32:09 -0000 Mailing-List: contact dev-help@forrest.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@forrest.apache.org List-Id: Delivered-To: mailing list dev@forrest.apache.org Received: (qmail 36977 invoked by uid 99); 9 Mar 2009 12:32:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 05:32:09 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Mar 2009 12:32:02 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix4.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LgeOv-0008BF-HR for dev@forrest.apache.org; Mon, 09 Mar 2009 13:16:09 +0100 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.69) (envelope-from ) id 1Lgedu-0006qa-BB for dev@forrest.apache.org; Mon, 09 Mar 2009 13:31:38 +0100 Subject: Changes to tidy-config.txt From: Thorsten Scherler To: dev@forrest.apache.org Content-Type: text/plain; charset=UTF-8 Date: Mon, 09 Mar 2009 13:35:44 +0100 Message-Id: <1236602144.6225.17.camel@panic> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -99 X-Spam-Score-Int: -99 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I played around with=20 $FORREST_HOME/etc/tidy-xml.pl=20 in a custom project where I need to clean up the white spaces.=20 For now we have not set the encoding in our configuration, this however can lead to problems in combination with=20 add-xml-decl: yes If you have a xml file that did not had a xml declaration, tidy will add one and use the default encoding which is "us-ascii". I needed to add "char-encoding: utf8" to the config to get rid of invalid character error that all my utf-8 characters had thrown. Another thing is the indent of all attributes. IMO that it just too much since if you have an element with 5 attributes you will have it now in 6 lines. I propose the following change: Index: etc/tidy-config.txt =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- etc/tidy-config.txt (revision 748122) +++ etc/tidy-config.txt (working copy) @@ -1,8 +1,9 @@ add-xml-decl: yes +char-encoding: utf8 input-xml: yes output-xml:yes indent: auto -indent-attributes: yes +indent-attributes: no indent-spaces: 2 write-back: yes preserve-entities: yes wdyt? salu2 --=20 Thorsten Scherler Open Source Java Sociedad Andaluza para el Desarrollo de la Sociedad=20 de la Informaci=C3=B3n, S.A.U. (SADESI)