Server issue with the {B}LFS books look

Nico R. n-roeser at
Tue Sep 14 12:33:03 PDT 2004

Hash: SHA1

Matthew Burgess wrote:

> On Tue, 14 Sep 2004 21:08:11 +0200
> "" <manuel at> wrote:
>> That mean that all pages are served like application/xhtml+xml, them
>> a very restrictives rules are applied, by the browser that implement
>> it, to render the pages.
>> For the {B}LFS books we are using tidy to validate and indent the
>> generated pages. The final code for a command blok is like this:
>>       {pre class="userinput"}
>> {kbd class="command"}./configure --prefix=/usr{/kbd}
>> {/pre}
>> That is semantically correct, but using the application/xhtml+xml
>> rules the first tag line break is added to the output (but not the
>> last one:-?).
>> My propossed solution is to add an ./htaccess file in all view/ dirs
>> to server the pages under that directories as plain text/html.
> Well, the *correct* method of serving them is indeed
> "application/xhtml+xml"[1], so really we should fix the 'tidy' scripts
> to not break on the {pre} elements.  Serving them out as 'text/html'
> is a quick fix, but IMO not the Right Thing to do in this case.

I don't consider this a fix at all.

Please fix the tidy problems instead.

If this is a problem, please tell me the version of tidy (the exact date
if this is a CVS version); I can try to hack it if necessary.

> [1]

Have fun,
- -- 
Version: GnuPG v1.2.6 (GNU/Linux)


More information about the website mailing list