Issue Bug Closed

#20039[FE][tidy] and page-types with non-html don't play well together

Niels Fröhling 02/17/09, 20:51 updated 09/09/13, 10:51

Description

If you have the tidy-option enabled (and tidy installed), tidy is indescriminate applied to all generated pages-types.

Reproduce:
1) install tidy
2) enable [FE][tidy] = 1
3) create a page-type that renders fe. javascript
4) access the page (depends on your tidy mode, cached or non-cached)

Result:
1) you get standard HTML wrapped around your fe. javascript

Solution:
1) allow tidy to be turned off via TS “config.tidy“
2) implement a conservative autodetection option “tidy = 2” which matches the content-type automatically

(issue imported from #M10468)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.