![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: New Line Character ("\n") removed from body of e-mail??? Topic Summary: Created On: 17-Sep-2008 21:53 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Been trying to figure this one out for a little while now. When I use the sendEMailMessage() function, sometimes the new line character gets removed.
See the attached script for an example, change my e-mail to yours and you'll see the new line character removed from between the frist two lines, but the rest are maintained. Any ideas why? ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
I think it has to do with the length of the lines, when the first line are shorter this does not happen. I might only apply to the first line.
/Anders |
|
![]() |
|
![]() |
|
How interesting.
This only happens with the first line. If you add a fullstop to the first line then the '\n' is preserved. I have no idea why. ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com |
|
![]() |
|
![]() |
|
I think it has to do with the length of the lines, when the first line are shorter this does not happen. I might only apply to the first line. /Anders It's not just the first line, the actual script I found this in has multiple lines that that are affected like this. Yet the funny thing is, when you add the "." it works just fine. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
How interesting. This only happens with the first line. If you add a fullstop to the first line then the '\n' is preserved. I have no idea why. Add a "\t" before the "\n" and it works as well..... I just don't get it. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Oddly enough it appears as if 40 characters is the limit if you don't have punctuation.
Weird: ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
I take that back a few of the e-mails where this doesn't happen have lines longer than 40 characters without punctuation and there isn't an issue.
This one has me totaly stumped. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
|
![]() |
|
Doh!
Look at the message again. At the top of the outlook window you will see "Extra line breaks in this message were removed". Click on the message to restore them. They are also restored when you forward or reply. I think that sometimes we are all too clever for our own good and miss the obvious... ------------------------- Tony Goodman Smart DXL limited www.smartdxl.com Edited: 18-Sep-2008 at 13:46 by Tony Goodman |
|
![]() |
|
![]() |
|
LoL....
Good catch Tony!!! I actually fixed the issue in my script by putting a " ' " around each line. Not the prettiest way to do this, but I don't want to have to reinsert the line breaks everytime I get an e-mail from the system. ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com |
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.