Hello Folks, One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE. Would it be possible for Zope (which has to parse the dtml files etc anyway) to convert cr+lf to plain cr? The problem I have currently is that if I format my dtml source nice and orderly, I end up having spaces in my Output where I don't want any... Or is there already a way to avoid this? Best wishes, Nils
Hello Folks,
One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE.
AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any whitespace as a space.
Would it be possible for Zope (which has to parse the dtml files etc anyway) to convert cr+lf to plain cr?
The problem I have currently is that if I format my dtml source nice and orderly, I end up having spaces in my Output where I don't want any...
Or is there already a way to avoid this?
I ran into the same problem (using Linux), and there isn't really anyway to get around it, apart from having un-nicely formatted DTML source. Benno
On Sun, 9 Jul 2000, Ben Leslie wrote:
One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE.
AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any whitespace as a space.
Well unix uses only cr by default, and browsers do not interpret that as a whitespace.
Or is there already a way to avoid this? I ran into the same problem (using Linux), and there isn't really anyway to get around it, apart from having un-nicely formatted DTML source.
Maybe a problem with the way the textarea editor netscape etc work. Nils
On Sun, 9 Jul 2000, Ben Leslie wrote:
One of my "favorite" issues with win/DOS has always been its use of CR+LF combinations. Why? Because all browsers interpret the thing as a SPACE.
AFAIK this is an HTML thing, not a win/DOS thing. The HTML spec treats any whitespace as a space.
Well unix uses only cr by default, and browsers do not interpret that as a whitespace.
Which broswer do you use? I just test this by using the following HTML <html><body> <h1>This is a test</h1> <h1>This is a te st </h1> </body></html> (Typed in using `cat' on a dec machine). Now, if browsers did not interpret cr as whitespace it should, in theory display something like: This is a test This is a test However, in the browsers I tested it with (Netscape - Linux, Lynx - DEC), it is displayed as: This is a test This is a te st This seems to be show that browsers _do_ interpret CRs as whitespace (or have I misunderstood what you are saying?) Benno
On Sun, 9 Jul 2000, Ben Leslie wrote:
This seems to be show that browsers _do_ interpret CRs as whitespace (or have I misunderstood what you are saying?)
Hmmm you're right. I could've sworn I didn't use to have this problem. I am awfully sorry... but still, maybe filtering cr+lf out would be a good idea, anyway.
participants (2)
-
Ben Leslie -
Nils Jeppe