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

Doctype split across multiple lines

From: Klaus Johannes Rusch <KlausRusch@atmedia.net>
Date: Sun, 29 Oct 2000 17:41:11 CET
Message-Id: <200010291603.LAA04401@tux.w3.org>
To: html-tidy@w3.org
Doctypes are output on multiple lines even when the width is set to a 
sufficently large number, like this:

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

While perfectly valid, some versions of Netscape still get confused by this 
and display the second line.

Suggested fix:
Output doctype declaration on a single line in lexer.c if remaining space 

<         AddStringLiteral(lexer, " \"");
>         AddStringLiteral(lexer, "\n    \"");

Klaus Johannes Rusch
Received on Sunday, 29 October 2000 11:03:32 UTC

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