W3C home > Mailing lists > Public > www-style@w3.org > January 2003

Generating line breaks

From: Etan Wexler <ewexler@stickdog.com>
Date: Mon, 20 Jan 2003 01:08:22 -0500
Message-ID: <1708246657.20030120010822@stickdog.com>
To: www-style@w3.org

Recent discussion has prompted some thinking on my part about line
breaks in generated content.  The current problem is that line feed
(U+000A) holds a priviledged position in CSS over all other line break
characters.  Line feed (U+000A) alone is recommended for use in
generated content to yield a line break.  Many systems, however, use a
string other than a single line feed (U+000A) as their native line
break sequence.  I believe that the long-term solution is
to introduce a keyword to represent line breaks.  The conformant
behavior in handling the line break keyword would be to generate a
line break.  The expectation and recommended behavior would be to
generate the line break string most common or most convenient for the
given system.

Both brevity and familiarity are satisfied by the keyword 'nl' or the
keyword 'br'.

In the current regime, I might write the following rule set.

note:before { content: "Note.\A"; }

In the proposed regime, I would write the following rule set instead.

note:before { content: "Note." nl; }

Etan Wexler, thrice winner, Exploding Head Contest
Received on Monday, 20 January 2003 01:09:26 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:05 UTC