![]() Preserved Topic: to [pre] or not to [pre] (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Lebanon |
![]() hi! |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Lebanon |
![]() Don't really know what to do... |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() <pre width="..."> |
Paranoid (IV) Inmate From: Lebanon |
![]() Slime! |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() 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 |
![]() 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 |
![]() Ah, see, I would take a different approach to this. |