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: RTF Import Issues with Line Feed (line break)
Topic Summary: When importing using built in RTF Importer, utility strips line feeds.
Created On: 15-May-2007 16:15
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.
 15-May-2007 16:15
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

Scenario:
Start a New document in MS Word.
Create something like this...

List One<ctrl-enter>
one<ctrl-enter>
two<ctrl-enter>
three<enter>
List Two<ctrl-enter>
one<ctrl-enter>
two<ctrl-enter>
three<enter>

Save a document as RTF.

When using the RTF Importer, in some cases we get normal input, but other cases, we are experiencing a result like this...

Listoneonetwothree
Listtwoonetwothree

We cannot pinpoint why. It is random. Sometimes, we even get half the line feeds.

Any ideas???

-------------------------
Craig Forant
me@craigforant.com
Report this to a Moderator Report this to a Moderator
 16-May-2007 23:12
User is offline View Users Profile Print this message


Louie Landale

Posts: 2070
Joined: 12-Sep-2002

First off, a word EOL is made with an ENTER, a word LF is made with a shft-ENTER, not the cntl-ENTER. On my computer, cntl-Enter inserts a page break but that may be different for you.

Are you saying that importing the same RTF makes for different modules at different times? If so, is it consistent depending on whether the RTF file is currently open or not? Is it consitent on one computer but consistently different on some other computer?

- Louie
Report this to a Moderator Report this to a Moderator
 17-May-2007 03:24
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

You are correct, I mistakenly stated Ctrl Enter and it is Shift Enter.

I didn't realize that having the document open made any difference. But, I will experiment with that.

Here is where we are with this...(any module...any computer we have tried)
If I take an RTF document that has this problem and Import it using the RTF Importer, all line feeds will be stripped out. If I open this document, save as a different name.rtf file and reimport the new document (on any computer...we are running windows xp, word 2000 sp3) SOME of the line feeds return, but NOT line feeds that exist back to back.

(ex. blah blah blah <line feed>
blah blah blah <line feed>
<line feed> // this one is removed by importer if saved as different name.
blah blah blah <line feed>


Telelogic has a copy of one of our problem files and is looking into it further, however, they may take a little while and we are looking at this import rtf as part of an approved process. Hopefully someone has an idea as to why this may be happening.

Thanks.

-------------------------
Craig Forant
me@craigforant.com
Report this to a Moderator Report this to a Moderator
 17-May-2007 14:00
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

There are two types of so called 'line feed' in an rtf file.

There is:
--Paragraph Mark
--Manual Line break

Doors Ignores manual line breaks.

Are you mixing these 'line feeds' in a document?
Report this to a Moderator Report this to a Moderator
 17-May-2007 14:29
User is offline View Users Profile Print this message


Craig Forant

Posts: 56
Joined: 21-Feb-2005

I am referring to the line feeds (imported as \line). If you display the rich text in a layout dxl column you will see these codes in DOORS.

You stated that "Doors Ignores manual line breaks.", (which is believable) however I am seeing SOME of the \line chars inserted. Weird.

When I look at the RTF document in a text editor, I notice a difference in the RTF code from the original document to the doc saved as another name. However, both docs have (\line)code in them that is stripped out by DOORS.

For example...this section in the original document reads:

...device ON.}{\line }{\b\cf1 \line }{\b\cf1 Verify}{\cf1 device...

turns into this in the saved as different name document...

...device ON.\line }{\b\cf1 \line Verify}{\cf1 device...

and DOORS strips all line feeds from the first one and only the second line feed in the saved as document.

-------------------------
Craig Forant
me@craigforant.com

Edited: 17-May-2007 at 14:30 by Craig Forant
Report this to a Moderator Report this to a Moderator
 17-May-2007 15:02
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

DOORS also ignored multiple line Paragraph marks and replaces with one Paragraph.

In ms word you can review the Paragraphs and Manual line breaks by clicking on the Whow/hide icon -- which looks like a Paragraph Mark on the tool bar.

Also -- what is the rationale of using RTF import -- Usually Word Export works better.

Something that might be relevant is -- what tool are you using to edit/save the rtf.

Edited: 17-May-2007 at 15:03 by ron lewis
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.