In the course of testing my reply to thread216-987714 I learned something very important about using <pre> tags and the innerHTML property: don't. Even though <pre> tags are supposed to preserve whitespace (including line breaks), when you use the innerHTML attribute to insert text into a <pre> tag it gets treated like HTML, not plain, preformatted text!
If you want to programmatically insert text into a <pre> section and you want to preserve the formatting like <pre> is supposed to, use the innerText attribute instead!
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.![[dragon] [dragon] [dragon]](/data/assets/smilies/dragon.gif)
If you want to programmatically insert text into a <pre> section and you want to preserve the formatting like <pre> is supposed to, use the innerText attribute instead!
Tracy Dryden
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
![[dragon] [dragon] [dragon]](/data/assets/smilies/dragon.gif)