Author Topic: RTF output - line feeds in structured scenario  (Read 3652 times)

cat

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
RTF output - line feeds in structured scenario
« on: September 01, 2010, 01:59:13 am »
Greetings,

I searched for the answer but didn't find - how to insert a line feed/new line/carriage return into the output of the structured scenario steps of the rtf document?

Thank you for any help!

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: RTF output - line feeds in structured scenario
« Reply #1 on: September 02, 2010, 02:25:59 pm »
Hi Cat,

I'm not clear on what you're trying to achieve, but can recommend the white paper "Working with the RTF generator"...

http://www.sparxsystems.com/downloads/whitepapers/Working_with_the_RTF_generator.pdf

However, in my Use Cases, I've put the structured steps in a table, so that each step appears as a new row in the table. If you want extra lines of space to appear, adding a hard return in the template will assist.

The placement of the tags is important however, as any white space can create extra lines, or in the worst case, a separate table for each row...

Hopefully that will help.

Andy.

« Last Edit: September 02, 2010, 02:26:40 pm by novaphile »
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."

cat

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: RTF output - line feeds in structured scenario
« Reply #2 on: September 02, 2010, 10:45:59 pm »
Thank you for your reply. Can you give me an example of how you did the table in the template?

AndyJ

  • EA User
  • **
  • Posts: 337
  • Karma: +5/-3
  • It's only a model
    • View Profile
Re: RTF output - line feeds in structured scenario
« Reply #3 on: September 03, 2010, 08:50:17 am »
scenario >
----------------------------------------------------------------------------
Scenarios:
----------------------------------------------------------------------------
<ElemScenario.Type><ElemScenario.Notes>
----------------------------------------------------------------------------
<ElemScenario.Scenario>
----------------------------------------------------------------------------
structured scenarios >
----------------------------------------------------------------------------
{Scenario_Structured.Step}. {Scenario_Structured.Name}, Uses: {Scenario_Structured.Uses}
exception >
Exception: . {Exception.Name}
< exception
-------------------------------------------------------------------
< structured scenarios
exception >
{Exception.Step}.{Exception.Name}
< exception
-------------------------------------------------------------------

< scenario

Sorry Cat, I've wasted quite a bit of time trying to get the forum to display this properly as a table, but the interface has defeated me.

« Last Edit: September 03, 2010, 09:14:18 am by novaphile »
Sun Tzu: "If you sit by the river long enough, eventually the body of MS Visio floats past."