OmarSkalli / fixy

Library for generating fixed width documents
MIT License
100 stars 45 forks source link

Custom line endings aren't working yet #17

Open stenzer opened 9 years ago

stenzer commented 9 years ago

I tried using the new cr/lf line ending as documented:

set_line_ending Fixy::Record::LINE_ENDING_CRLF

And.... no change to the line endings. Looking into the code a bit, the line ending seems to be held in an instance variable and accessed from a class method, which could explain the problem... and I'm not sure what the intention was, so I'm reporting it rather than trying to fix it. Thanks!

samkim commented 9 years ago

@stenzer Can you provide more context for the Record definitions you're using the line endings? Things seem to be working as expected in my uses.

Also if you generate a file (using Document#generate_to_file for example) and run file your_file.txt what're the line endings that are detected?