Re: End-tag of script element is not indented

Please fill a bug in the tidy tracker. Thanks,

2008/10/24 Kauker, Hubert <Hubert.Kauker@travelbasys.de>:
> When I am using --indent auto, then the end tag of a SCRIPT element is not
> indented in case the src attribute is used and no script code is included in
> the element.
>
> What can I do to get the end tag indented correctly?
>
> Or is there a way to keep the end tag on the same line as the start tag?
> This would make the output a bit more acceptable.
>
> Hubert
>
> E x a m p l e :
>
> C>tidy -version
> HTML Tidy for Windows released on 11 August 2008
>
> C>tidy --indent auto test1.html
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
>
> <html>
> <head>
>   <meta name="generator" content=
>   "HTML Tidy for Windows (vers 11 August 2008), see www.w3.org">
>
>   <title>Script Tag Test 1</title>
>   <script type="text/javascript">
> var x = null;
>   </script>
>   <script type="text/javascript" src="test.js">
> </script>
> </head>
>
> <body>
>   <h1>Script Tag Test 1</h1>
> </body>
> </html>
>

Received on Wednesday, 29 October 2008 15:46:22 UTC