Author Topic: Script driven Fragment with new lines  (Read 86 times)

philchudley

  • EA User
  • **
  • Posts: 523
  • Karma: +9/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Script driven Fragment with new lines
« on: November 10, 2017, 01:18:46 am »
Hi All

I am developing a script for a documentation template fragment.

Part of this involves processing a list of GUIDS from a refGUIDList tagged value, getting each GUID is easy, but as part of the XML returned which contains several custom fields, I wish to return a CustomField called, say ELELIST which is a newline delimited string of element names

Does anyone know how to achieve this?

I have tried using \n as the delimiter as well as 
 all are simply ignored during documentation generation and all element names appear on a single line of text.

Phil
follow me on Twitter

@SparxEAGuru

philchudley

  • EA User
  • **
  • Posts: 523
  • Karma: +9/-0
  • UML/EA Principal Consultant / Trainer
    • View Profile
Re: Script driven Fragment with new lines
« Reply #1 on: November 10, 2017, 01:44:18 am »
Hi All

I have solved the problem

The delimiter to be used is <p> (HTML Paragraph)

The string representing the custom field is added to the XML with a formatted attribute with a value of 1

Cheers

Phil
follow me on Twitter

@SparxEAGuru