September 06, 2010, 04:49:30 AM *
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: CSV Linebreaks  (Read 4330 times)
tizma
Newbie
*
Posts: 1


View Profile
« on: April 07, 2008, 07:32:20 AM »

Hi,

Firstly, great little tool, love it. One observation that could be considered a bug is the way you terminate a line in CSV's. You seem to only use a Line Feed (char 10) for your line breaks. Although most of the time this is not a problem some text editors like notepad are fussy and require the windows standard of Carriage Return (char 13) / Line Feed (char 10). Line Feed on its own is a more unix style of terminating a line.

Maybe an option for the user to select how they terminate a line?

Just a thought, I'll get back in my box Smiley
Logged
Ben
Administrator
Jr. Member
*****
Posts: 93


View Profile Email
« Reply #1 on: May 21, 2008, 10:40:30 AM »

Good idea! :-)

I've kept putting off work on this script in favour of some others, but I'll definitely keep this in mind when I return to it again. Thanks, tizma!

- Ben
Logged
kob
Newbie
*
Posts: 15


View Profile
« Reply #2 on: July 14, 2010, 04:21:57 AM »

Good idea! :-)

I've kept putting off work on this script in favour of some others, but I'll definitely keep this in mind when I return to it again. Thanks, tizma!

- Ben

See attached files for a possible solution. (make a diff compared to the beta 2.3.3)
Next to those files you will need to add $LANG["eol_type"] = "End Of Line Type"; in the language files.

Added option to choose between Windows, Unix/Linux and Mac type of line endings.
Logged
Pages: [1]
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by SMF 1.1.4 | SMF © 2006-2007, Simple Machines LLC