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: Object Text Format Issue
Topic Summary: Carriage return action within object text
Created On: 11-Oct-2006 15:17
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.
Answer This question was answered by Stuart Barr, on Wednesday, December 6, 2006 2:15 PM

Answer:
That's exactly what I saw when moving from DOORS 7 to DOORS 8 (actually I think the change in behavior came in DOORS 7.1 patch 14 or so). I was pretty annoyed to put it mildly. Whatever happened to backward compatibility on upgrade. Grrrr!

Any, regardless, the "fix" was a pain, and was exactly that of changing hard new lines to soft new lines, as Ron stated. I had to write a DXL script to go "fix" my existing objects to replace the hard newline to a soft newline. Use Ron's method going forward for new objects.

For what it's worth, here's the code I cobbled together to replace the hard newline \par with soft newline \line in the rich text for the "Object Text" of all objects, to give you an idea of what needed to be done. You'll see that I got it to skip objects with OLE, and bullet lists etc. Some things are easier to tweak manually, when you know _exactly_ how it should be....

Season the script to taste.

Regards,
Stuart
 11-Oct-2006 15:17
User is offline View Users Profile Print this message


Robert Dworak

Posts: 7
Joined: 23-Aug-2006

I am trying to get consistent handling of object text when I export to Word. I have one object with text that ends up generating word paragraph breaks between the paragraphs in the DOORS object text and another that generates carriage returns. When I edit the object text in DOORS, for the object that generates carriage returns, DOORS automatically leaves space between paragraphs when I hit the "Enter" key on the keyboard. The DOORS object that generates paragraph breaks, does not leave space and I end up hitting "Enter" twice to obtain the same look in DOORS (one blank line between paragraphs). I can not seem to discover what is triggering the different edit action in the two different objects. I can probably live with either behavior, but I need them to be consistent. I would prefer to have DOORS export and generate paragraph breaks, but I can write a Word macro to change the carriage returns to paragraph breaks if necessary.

Does anyone know how to set the edit behavior for the "Enter" key?
Report this to a Moderator Report this to a Moderator
 11-Oct-2006 15:34
User is offline View Users Profile Print this message


Robert Dworak

Posts: 7
Joined: 23-Aug-2006

This seems to be a problem between soft newlines vs. hard newlines. How do I set the text input mode to hard newlines when I type text into an object text field?
Report this to a Moderator Report this to a Moderator
 11-Oct-2006 17:40
User is offline View Users Profile Print this message


ron lewis

Posts: 650
Joined: 20-Sep-2004

Not sure if I followed you thoughts but try the following info

To ensert new paragraph select Key : return
To ensert a soft return select keys: shift control return
Report this to a Moderator Report this to a Moderator
 13-Oct-2006 16:12
User is offline View Users Profile Print this message


Stuart Barr

Posts: 4
Joined: 17-May-2004

Answer Answer
That's exactly what I saw when moving from DOORS 7 to DOORS 8 (actually I think the change in behavior came in DOORS 7.1 patch 14 or so). I was pretty annoyed to put it mildly. Whatever happened to backward compatibility on upgrade. Grrrr!

Any, regardless, the "fix" was a pain, and was exactly that of changing hard new lines to soft new lines, as Ron stated. I had to write a DXL script to go "fix" my existing objects to replace the hard newline to a soft newline. Use Ron's method going forward for new objects.

For what it's worth, here's the code I cobbled together to replace the hard newline \par with soft newline \line in the rich text for the "Object Text" of all objects, to give you an idea of what needed to be done. You'll see that I got it to skip objects with OLE, and bullet lists etc. Some things are easier to tweak manually, when you know _exactly_ how it should be....

Season the script to taste.

Regards,
Stuart
Report this to a Moderator Report this to a Moderator
 11-Jan-2007 14:19
User is offline View Users Profile Print this message


Martin Hunter

Posts: 86
Joined: 10-Jan-2005

I have used the above script and changed \par to \line, ie hard returns to soft returns, in certain objects however when I export them they still export as a hard return. I use WEXP v11.4 for most exports but have also tried the DOORS Word export and both give the same result.
I'm using DOORS 7.1 patch?? (71167) any suggestions gratefully received.



-------------------------
- Martin
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 0 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 0 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.