N
Noozer
I have an ASP page that generates an HTML formatted email message. It works
fine except for one item...
I want to maintain the line breaks, etc for the data that was input into a
text box. The formatting does show up in the email (partial source below)
but the inline CSS styling for white-space isn't being done.
Am I coding it wrong or is it just the email client displaying the results
poorly?
(snip)
<td align='right'>Average Answer:</td><td>1</td></tr><tr>
<td align='right'>National Explanation:</td><td>1</td></tr><tr>
</tr><tr><td height='1' colspan='100%'><hr></td></tr><tr>
<td><span style="font-weight: bold; ">Repair</span></td></tr><tr>
<td align='right'>Staff:</td><td>1</td></tr><tr>
<td align='right'>Explanation:</td><td>1</td></tr><tr>
</tr><tr><td height='8'> </td></tr><tr>
</tr><tr><td height='1' colspan='100%'><hr></td></tr><tr>
</tr></table><table><tr><td align='right'>Comments:</td><td><span
style="white-space: pre; color: #800000; ">This
is
a
test
This is only a test. The quick brown fox jumped over the lazy dogs back.
This is still just a test.</span></td></tr><tr>
</tr></table></body></html>
....I've also had it like this (no SPAN tags)...
</tr></table><table><tr><td align='right'>Comments:</td><td
style="white-space: pre; color: #800000; ">This
is
a
test
This is only a test. The quick brown fox jumped over the lazy dogs back.
This is still just a test.</td></tr><tr>
</tr></table></body></html>
fine except for one item...
I want to maintain the line breaks, etc for the data that was input into a
text box. The formatting does show up in the email (partial source below)
but the inline CSS styling for white-space isn't being done.
Am I coding it wrong or is it just the email client displaying the results
poorly?
(snip)
<td align='right'>Average Answer:</td><td>1</td></tr><tr>
<td align='right'>National Explanation:</td><td>1</td></tr><tr>
</tr><tr><td height='1' colspan='100%'><hr></td></tr><tr>
<td><span style="font-weight: bold; ">Repair</span></td></tr><tr>
<td align='right'>Staff:</td><td>1</td></tr><tr>
<td align='right'>Explanation:</td><td>1</td></tr><tr>
</tr><tr><td height='8'> </td></tr><tr>
</tr><tr><td height='1' colspan='100%'><hr></td></tr><tr>
</tr></table><table><tr><td align='right'>Comments:</td><td><span
style="white-space: pre; color: #800000; ">This
is
a
test
This is only a test. The quick brown fox jumped over the lazy dogs back.
This is still just a test.</span></td></tr><tr>
</tr></table></body></html>
....I've also had it like this (no SPAN tags)...
</tr></table><table><tr><td align='right'>Comments:</td><td
style="white-space: pre; color: #800000; ">This
is
a
test
This is only a test. The quick brown fox jumped over the lazy dogs back.
This is still just a test.</td></tr><tr>
</tr></table></body></html>