Just copying some stuff from
Sandbox.WebHome to get it off that page and start a page perhaps dedicated to that subject. Don't be surprised if this page gets moved, but I will leave a pointer behind.
%SECTION{last_revision}%
%SECTION{summary}%
See:
Contents
This is a very long line within pre+verbatim tags, this should wrap but it seems not to in Mozilla, FireBird 0.x, and Internet Explorer 5/6 ... Does any know how to fix this? Does this wrap for anyone? Any clues suggestions on what might be causing this? Help would be appreciated ... Help would be appreciated. I'm sorry if you had to scroll horizontally 10 pages across for this... :)</pre>
For the moment, just pasting in the comments I made in an email to the poster:
Thanks for putting your test page over in the Sandbox web! Later today (when I overcome my headache), I'll give you a fuller response, perhaps on the TWiki, although I may move your line to a different page (maybe even back on Wikilearn).
To give a quick but incomplete answer:
On both Netscape Navigator 3.0 and IE 5, this is what I see: your long line in <pre><verbatim> does not wrap, but all the other lines on the page do. I think (based on previous email or wiki discussions), that an HTML expert (which I am not) would say that this is not a bug, and I'll talk more about that later.
A worse bug would be if, because of this long line in <pre> and/or <verbatim>, the other text on the page failed to wrap.
Later today, I'll try viewing the page in konqueror. At least at one time konqueror was the one browser I found that would wrap such long lines, but I am almost sure I never tried text wrapped with both pre and verbatim, I used one or the other, and, IIRC, the two behave slightly different in konqueror. If you get a chance you might want to duplicate that line two more times, and wrap one instance with pre and the other with verbatim and view the results, and possibly do some experimenting by selectively deleting two of the lines. (In other words, check out the behavior of the entire page with a long line in <pre>, then with a long line in verbatim, (and you've already tested with a long line in both).
_Update: I just took a quick at this in konqueror, I'll add most of my observations later, but I did notice that your pre and verbatim tags were improperly nested (whichever tag you open first should be closed last). I fixed it (putting pre first), but I don't know if that will change the behavior of the page (or if putting pre last would have a different effect)._
To me, bug or not, it has its uses (I'll discuss more later). An HTML expert who claims it is not a bug would probably tell you that the HTML standard does not dictate presentation, hence different browsers may present similar markup differently (without violating the HTML standard). Of course, the fact that all browsers don't do the same thing can be (and perhaps should be) considered a bug, but it would be a little hard to blame it on any particular browser, it is a consequence of the HTML standard not specifying presentation and no standard evolving (so far) for browser presentation. Or you could call it a bug for whichever browser(s) are out of step, unless you like their behavior. (I actually like the behavior of konqueror in this respect, if I didn't mention it so far, at least one of the tags (pre or verbatim) will be wrappped in konqueror. Unfortunately, there are other things I dislike about konqueror. (But konqueror is my preferred and default browser except when I'm on Windows, and right now I'm forced to read my email on a Windows machine.)
Ok, I wrote more here than I planned to, so to give me a start on what I may add to it later, I'm simply going to paste this on that page. I think a record of our discussion may help someone else (especially once our discussion reaches either consensus or truth ;-).
Verbatim tag only
Testing, Testing, Testing, Testing, Line wrapping. Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.
--
_The above line wraps for me in konqueror 3.1.1. (I suspect it will wrap for any version of konqueror.) Later today I may check the same page in IE 5, 5.5, or 6 (depending on where I am). IIRC, the line will not wrap, and other lines on the same page will not wrap either, because of this line, but, I shouldn't speculate, and I'm just talking off the top of my head. -- Main.RandyKramer - 06 Feb 2004_
_I've tested it using Internet Explorer 6 and Mozilla Firebird 0.7 and it wraps_ :) -- Main.VivekDelhikar - 10 Feb 2004
Pre tag only
Testing, Testing, Testing, Testing, Line wrapping. Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.
--
_I've tested it using Internet Explorer 6 and Mozilla Firebird 0.7 and it does not wrap_ :( -- Main.VivekDelhikar - 10 Feb 2004
Pre+Verbatim tags
Testing, Testing, Testing, Testing, Line wrapping. Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.
--
_I've tested it using Internet Explorer 6 and Mozilla Firebird 0.7 and it does not wrap_ :( -- Main.VivekDelhikar - 10 Feb 2004
pre tag with WIDTH="50 pixels"
Testing, Testing, Testing, Testing, Line wrapping. Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.Testing, Testing, Testing, Testing, Line wrapping.
_Still, no wrapping in IE_ :( -- Main.VivekDelhikar - 10 Feb 2004
_Wrapped in Mozilla FireFox!_ :) -- Main.VivekDelhikar - 10 Feb 2004
Definitinon of pre tag
The pre element defines preformatted text. The text enclosed in the pre element usually *preserves spaces and line breaks*. The text renders in a fixed-pitch font.
The pre element is very useful for displaying code, emails, program outputs, etc.. on TWiki pages, however, the browser usually gets the last laugh due to the fact that it displays the text using some hideous, mono-spaced font along with no line breaking which really detracts the flow of the page! How annoying! Would there be a way to force < pre > to wrap? JavaScript? Modification of TWiki code? Anything..!? -- Main.VivekDelhikar - 10 Feb 2004
---++ Contributors
* () Main.RandyKramer - 05 Feb 2004
* () Main.VivekDelhikar - 06 Feb 2004
* _If you edit this page: add your name here; move this to the next line; and if you've used a comment marker (your initials in parenthesis), include it before your TWiki.WikiName._
---++ Revision Comment
%SECTION{last_revision}%
* %DATE% —
---++ Page Ratings