Author Topic: Adding newline at end of file  (Read 5000 times)

kwokwong

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Adding newline at end of file
« on: August 19, 2004, 07:25:52 am »
We're using EA 4.0 for generation of C++ programs.
The generated header files (*.h) does not contain a newline at end of file.
Our compiler (gcc) complains about that.
Can anyone help to configure EA to generate a newline at end of a header file?

Note: we do not want a CRLF at each  line.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +54/-3
    • View Profile
Re: Adding newline at end of file
« Reply #1 on: August 19, 2004, 03:53:21 pm »
Quote
The generated header files (*.h) does not contain a newline at end of file.
That was fixed at build 733. Try downloading the new version.

Quote
Note: we do not want a CRLF at each  line.
There is an option on the "Tools / Options / Generation" dialog to switch on CR & LF. Uncheck the checkbox.

HTH
The Sparx Team
[email protected]

kwokwong

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Adding newline at end of file
« Reply #2 on: August 20, 2004, 01:13:54 am »
Quote
That was fixed at build 733. Try downloading the new version.

There is an option on the "Tools / Options / Generation" dialog to switch on CR & LF. Uncheck the checkbox.

HTH


I just downloaded the latest version (build 734). But the problem (no newline at end of header file) still remains.
Or should I execute any patch ?

kwokwong

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Adding newline at end of file
« Reply #3 on: August 20, 2004, 01:31:03 am »
Quote

I just downloaded the latest version (build 734). But the problem (no newline at end of header file) still remains.
Or should I execute any patch ?


Problem is fixed now.  
The fix did not work at once because I have modified some code templates :) :). After restoring these to its' default content, everything works well.