Preserved Topic: to [pre] or not to [pre] |
|
---|---|
Author | Thread |
Paranoid (IV) Inmate From: Lebanon |
posted 06-07-2001 15:15
hi! |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 06-07-2001 15:34
um... define a different tag? Try using CSS and us a <p class="pre"> that mimics what the pre atribute does. Pre is ment to avoid all kinds of formatting... but you might be able to do some sort of CSS atributing to it, for that I would recommend trying www.w3.org/style/css and see what it says there. |
Paranoid (IV) Inmate From: other places |
posted 06-07-2001 15:39 |
Paranoid (IV) Inmate From: Lebanon |
posted 06-08-2001 09:09
Don't really know what to do... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-08-2001 20:23
<pre width="..."> |
Paranoid (IV) Inmate From: Lebanon |
posted 06-09-2001 08:38
Slime! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 06-09-2001 10:19
Why don't you convert line breaks (\n) to "<BR><BR>" and tabs (\t) to appropriate number of spaces (i.e. "&nbsp;&nbsp;&nbsp;&nbsp;")? Doing that you'll preserve formatting. Optionally, since you want text to wrap at certain point, you can use some server-side script to pre-process it... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-09-2001 16:04
Alright, I'd like to see *why* you want to preserve whitespace, could you give us a link? The pre tag is probably very unecessary, and it's probably better to use a combination of HTML and CSS to create the whitespace. |
Paranoid (IV) Inmate From: Lebanon |
posted 06-11-2001 08:18
Slime: the thing is that i have the following case: code: <html><head><title>***THE_TITLE***</title></head>
|
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
posted 06-11-2001 18:23
Ah, see, I would take a different approach to this. |