Partial work toward 11390, using style instead of embedded pre tag

to control wrapping; this adds a style tag that should work, but
doesn't seem to (see bug 4696), so I've left the old pre tag in place.
Also change text to more accurately reflect the situation, and fix the
80 char reference so that it's really 80 chars (was 78 ;-).
This commit is contained in:
akkana%netscape.com 1999-08-19 22:14:54 +00:00
Родитель 171befab8e
Коммит 92b103e2e7
2 изменённых файлов: 14 добавлений и 22 удалений

Просмотреть файл

@ -28,10 +28,9 @@
/* This style sheet should be in a seperate file */
BODY {
whitespace: -moz-pre-wrap; width: 40ch;
/* font-family: monospace; */
/* white-space: pre; */
background-color: #FFFFFF;
/* width: 450px; this is a bogus, hard-coded value */
background-color: #FFFFFF;
margin: 4px 4px 4px 4px;
}
@ -42,18 +41,15 @@ BODY {
<body>
<pre cols="80">
<pre cols="72">
80 char width (for reference only)
|----------------------------------------------------------------------------|
---------|---------|---------|---------|---------|---------|---------|---------|
This entire body is in a &lt;PRE&gt; tag, wrapped to 80 columns.
Welcome to the Gecko Plaintext Editor.
Typed text will wrap to the window width. To get wrapping at a fixed width, play with the BODY style in this HTML file.
Welcome to the Gecko Editor Test Bed
Try typing something...
This entire body is in a &lt;PRE&gt; tag, wrapped to 72 columns. Eventually we want to do this through a style sheet (see bug 4696).
Typed text will wrap to the current wrap setting. You can increase or decrease the wrap setting by typing alt-] or alt-[; you can see the current wrap column setting by typing alt-C.
</pre>
</body>

Просмотреть файл

@ -28,10 +28,9 @@
/* This style sheet should be in a seperate file */
BODY {
whitespace: -moz-pre-wrap; width: 40ch;
/* font-family: monospace; */
/* white-space: pre; */
background-color: #FFFFFF;
/* width: 450px; this is a bogus, hard-coded value */
background-color: #FFFFFF;
margin: 4px 4px 4px 4px;
}
@ -42,18 +41,15 @@ BODY {
<body>
<pre cols="80">
<pre cols="72">
80 char width (for reference only)
|----------------------------------------------------------------------------|
---------|---------|---------|---------|---------|---------|---------|---------|
This entire body is in a &lt;PRE&gt; tag, wrapped to 80 columns.
Welcome to the Gecko Plaintext Editor.
Typed text will wrap to the window width. To get wrapping at a fixed width, play with the BODY style in this HTML file.
Welcome to the Gecko Editor Test Bed
Try typing something...
This entire body is in a &lt;PRE&gt; tag, wrapped to 72 columns. Eventually we want to do this through a style sheet (see bug 4696).
Typed text will wrap to the current wrap setting. You can increase or decrease the wrap setting by typing alt-] or alt-[; you can see the current wrap column setting by typing alt-C.
</pre>
</body>