Book a Demo

Author Topic: Paragraphs in notes  (Read 4494 times)

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Paragraphs in notes
« on: September 21, 2007, 02:35:56 pm »
Is there a way to force paragraph breaks in the Notes portion of Domain Classes?  It is mushing everything together when I generate documentation which is *not* an aid to readability.

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Paragraphs in notes
« Reply #1 on: September 21, 2007, 02:56:52 pm »
OK, by just trying out various things, I did discover that < P > (without the spaces) would create a break, but the only way I found to get a space between paragraphs was to put in a period and another paragraph break.

mark.myers

  • EA User
  • **
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Paragraphs in notes
« Reply #2 on: September 23, 2007, 04:05:12 pm »
Thomas,

I will mention this in case it becomes an issue for you when generating documentation - I'm not sure if you are generating RTF or HTML but I assume from the <p> that it is HTML; my comments apply to RTF (I haven't investigated HTML). I have just discovered what looks like a bug when generating RTF documents with an element notes field that contains a paragraph break, ie entered with a "return" in the standard way. If the {Element.Notes} field is contained in the "Child elements>" section (or a table) then you get either the tag itself or garbage but not the notes field. I will report this to Sparx and post the results here.

Regards,
Mark.
Cheers, Mark

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Paragraphs in notes
« Reply #3 on: September 23, 2007, 07:06:40 pm »
The bizarre part for me is that Notes in Domain Objects behave as I would expect them to, i.e. paragraph breaks and carriage returns are preserved as one would expect, but for Requirements, everything ends up getting mushed together unless one uses the < P >

Not intuitive.

mark.myers

  • EA User
  • **
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Paragraphs in notes
« Reply #4 on: September 23, 2007, 08:17:18 pm »
Quote
I will report this to Sparx and post the results here.


My response from Sparx was:
This issue has been raised and a correction for it will be available in the release of build 817 - due out in the next couple of days.

There is still an issue with the third party software, in that Notes with multiple lines will render to Normal font - no format.  We won't be able to resolve this until the next build. So I suggest you keep to the standard font format for notes - for the next build.

I hope this is of help.
Cheers, Mark

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Paragraphs in notes
« Reply #5 on: September 24, 2007, 06:13:43 am »
So Mark,

Did it work in 817?

David
No, you can't have it!

mark.myers

  • EA User
  • **
  • Posts: 97
  • Karma: +0/-0
    • View Profile
Re: Paragraphs in notes
« Reply #6 on: September 24, 2007, 02:11:03 pm »
Yes it works in 817
Cheers, Mark

Thomas Mercer-Hursh

  • EA User
  • **
  • Posts: 386
  • Karma: +0/-0
  • Computing Integrity
    • View Profile
Re: Paragraphs in notes
« Reply #7 on: September 24, 2007, 02:53:44 pm »
I can also confirm that it works in 817 ... good thing I didn't add too many of those <P> tags because with the fix they were producing a lot of extra whitespace and so I now had to delete them.

FWIW, while this is an HTML appearing tag, I was generating RTF documentation.