defaultLineSeparator and defaultSeparator

please report bugs here

defaultLineSeparator and defaultSeparator

Postby bwendler » Mon Feb 28, 2011 10:39 am

I got a descriptor file with 5 non nesting generate nodes which all use consumer CSVEntityExporter. For changing the default behaviour for lineseparator (want '\r') and separator (want ';') setting the appropriate setup default attributes does not work. After setting it for some of the nodes (3 of 5 in my case) via the property it starts to work for the whole data generation. There might be a bug in the TextFileExporter.

Using version 0.6.5
bwendler
 
Posts: 4
Joined: Mon Feb 28, 2011 10:11 am

Re: defaultLineSeparator and defaultSeparator

Postby Volker Bergmann » Fri Apr 22, 2011 9:35 am

Hi Bert,

thank you for reporting the bug - I checked and fixed it. Indeed <setup defaultSeparator=";"> should have the effect you described. On the other hand, the defaultLineSeparator of the <setup> element is not applicable for CSV files, since it is intended as the default separator for text-based files, but the CSV spec defines \r\n as default separator for CSV files.

Regards,
Volker 'databene' Bergmann

Need faster response times? phone support? onsite support? training? custom extensions? immediate bug fixes? Support Benerator evolution by buying services from Volker Bergmann!
User avatar
Volker Bergmann
 
Posts: 654
Joined: Sat Nov 10, 2007 2:40 pm


Return to Benerator Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron