Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
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
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 17-Sep-2008 21:53
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 08:25
User is offline View Users Profile Print this message


Anders Vestlin

Posts: 11
Joined: 30-Aug-2007

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 11:11
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 13:06
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Anders Vestlin

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 13:07
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

Originally posted by: Tony Goodman

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 13:24
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 13:26
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 13:44
User is offline View Users Profile Print this message


Tony Goodman

Posts: 97
Joined: 6-May-2008

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
Report this to a Moderator Report this to a Moderator
 18-Sep-2008 14:16
User is offline View Users Profile Print this message


Scott Boisvert

Posts: 348
Joined: 14-Apr-2006

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
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.