Line breaks repeats content (openoffice) or does not work (MS Excel 2007)

Topics: User Forum
Jun 21, 2013 at 11:24 PM
Hello:

My PHP Version is 5.4.7, running under Windows 8 x64 (Xampp 1.8.1).

Like the subject says, my problem is that on openoffice the content is repeated (only once) like this:
00:00:00
00:00:00
00:00:0000:00:00 // Here it repeats
00:00:00
00:00:00
And on MS Excel, the line break does not work; I get: 00:00:0000:00:0000:00:00.

The content is split by preg_replace( 'regex', "\r\n", $var ) or simply using a string: "$var\n$var". I have tried with \r\n, \n and PHP_EOL but does not work.

Any advice would be great, so, thanks in advance :).