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
Problem:
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"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

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 
permits:

1052c1052
<         AddStringLiteral(lexer, " \"");
---
>         AddStringLiteral(lexer, "\n    \"");


-- 
Klaus Johannes Rusch
KlausRusch@atmedia.net
http://www.atmedia.net/KlausRusch/
Received on Sunday, 29 October 2000 11:03:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:44 GMT