Book a Demo

Author Topic: Text in note elements loose line breaks  (Read 6080 times)

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Text in note elements loose line breaks
« on: May 09, 2014, 05:33:45 pm »
Hello,
I have a really strange and annoying problem with EA 9.3 (I also tried the new EA 11 but it shows the same behavior).

In the last few moth there are more and more note elements in our EA models whose texts have somehow lost the intended line breaks.
E.g. sometimes we have tiny code snippets (are any other text, doesn't matter). This snippet has been entered with line breaks:
int myFunction(void)
{
    //do something
}

One day this snippet was shown the following way in the diagram and in the note properties dialog:
int myFunction(void){   //do something}

Sometimes it helps to type in the text again with line breaks, but it is impossible to cover all notes throughout all the models.

I have not found a similar problem in this forum.
Reinstalling EA did not help (regardless the version, see above).

Any idea what might cause this problem?
Any idea how to solve this?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Text in note elements loose line breaks
« Reply #1 on: May 09, 2014, 07:35:14 pm »
Do you use any add-in/scripts working with notes? If so you should be aware that EA treats notes fields in its own special way. See the Repository.GetFieldFromFormat and pendant methods.

q.

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Text in note elements loose line breaks
« Reply #2 on: May 12, 2014, 06:24:57 pm »
We are not working with add-ins. Especially no add-ins working on "notes".

I just found out, that on other PCs the note texts are OK, which means the text is shown with line breaks as they have originally been set.
It seems to be my PC that causes weird displaying of note texts.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Text in note elements loose line breaks
« Reply #3 on: May 12, 2014, 08:27:37 pm »
Are you working on a central repository or on individual EAP files?

q.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Text in note elements loose line breaks
« Reply #4 on: May 12, 2014, 10:21:45 pm »
Might have something to do with your regional settings.
Compare yours with the other pc's.

Geert

Aaron B

  • EA Administrator
  • EA User
  • *****
  • Posts: 941
  • Karma: +18/-0
    • View Profile
Re: Text in note elements loose line breaks
« Reply #5 on: May 13, 2014, 10:15:49 am »
Are these just plain diagram note elements?  Or are these notes linked to a class which is being used for code engineering?  If you find that line breaks are becoming lost when importing/synchronizing source code, try disabling the following option:

Tools | Options > Source Code Engineering : Remove hard breaks from comments on import

Boron

  • EA User
  • **
  • Posts: 111
  • Karma: +6/-0
    • View Profile
Re: Text in note elements loose line breaks
« Reply #6 on: May 16, 2014, 05:02:09 pm »
Sorry for answering so late.
@qwerty:
Yes, we have central repositories for the Ea models on an PostgreSQL server.

@Geert
Other PCs that show no problems have the same regional settings (Win 7 everywhere; German region everywhere)

@Aaron B
The note elements are really just notes :). The content is not used for code generation. The problem is not bound to text that is source code. It might happen to any text inside a note element.

As I am experiencing other strange behavior on my PC I shortly before telling our IT department to make a new installation of my PC :(.