w3c/tidy-html5 — Issue #13: empty <script> tag wraps but doesn't indent properly
Author: AlexHowansky
Created: 2012-03-09 15:55:16+00:00
State: open

Given this input file:

```html

test

```

I'll run tidy like this:

```
tidy --indent yes --indent-spaces 4 --wrap 0 --quiet yes --tidy-mark no test.html
```

And get:

```html

test

```

Note that the closing script tag is wrapped but not indented. If I put a comment inside the tags:

```html

test

```

Then I'll get this:

```html

test

```

I'm thinking that the closing script tag should either not wrap at all (in the case where there's no content) or wrap and be indented to match the opening tag.

Thanks.