W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2003

Bad indentation with <style>

From: Vincent Tap <vtap@club-internet.fr>
Date: Wed, 8 Oct 2003 20:00:30 +0100
Message-ID: <007a01c38dce$71d7bfd0$22322cd5@lesdoudous>
To: <html-tidy@w3.org>

Using HTML Tidy for Windows released on 1st February 
2003, in order to have a clean XSL file,I use the 
following command line :

tidy --add-xml-decl no --clean yes --doctype strict --
indent-attributes yes --indent-spaces 3 --indent yes --
input-xml yes --keep-time no --output-xml yes --quiet 
yes --tidy-mark no --write-back yes .\Interventions.xsl

The result (only the first lines of the file) is :

<?xml version="1.0"?>
<xsl:stylesheet version="1.0"

<xsl:output encoding="ISO-8859-1"
method="html" />
<xsl:template match="/">
<xsl:if test="wsamson/tablename = 'interventions'">
<style type="text/css">
th.en_tete {text-align: center; width: 
td.droite {text-align: right;}

Notice that the lines under the <style> are properly 
indented, but the </style> is in column 1.

Attached is the complete XSL file.

Received on Wednesday, 8 October 2003 14:16:09 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC