|Re: Empty line on generated ecore file [message #997789 is a reply to message #997419]
||Tue, 08 January 2013 18:50
| Martin Taal
Registered: July 2009
This was a bug, I fixed it and published a new build, can you check if this helped?
On 01/07/2013 01:17 PM, Emanuele Gesuato wrote:
> Hi there,
> we are having a strange behaviour when ecore file is generated: the top line is empty and xml validation gets failed. In attachment you can find our ecore file that we are trying to generate.
> I tried to debug in your code and found that when it is using "ecorefile.xpt" the statement "Â«this.ecoreFileContentÂ»" is surrounded by two TextStatement: '\n' and '\n'.
> The first one is the one that generates the empty line but it has its property "deleteLine" set to true but this attribute is never evaluated so the '\n' is generated.
> The strange thing that we are using an our "ecorefile.xpt" but our file and yours are identical: if I try to delete our file the generation runs fine without the empty line. But I don't understand what's wrong. What encoding are you using to save xpt file ? UTF-8 ?
> Thanks for any help,
With Regards, Martin Taal
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxx - mtaal@xxxxxxxx
Web: www.springsite.com - www.elver.org
Powered by FUDForum
. Page generated in 0.01953 seconds