Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author wibergsweb

    (@wibergsweb)

    Hi!

    I were not aware of this issue. As you probably guessed I’m developing this plugin in Windows. I’m checking what could be done and I would get back to you as soon as possible.

    Thread Starter sankeytm

    (@sankeytm)

    Maybe this approach will work:

    % svn diff
    Index: csvtohtml.php
    ===================================================================
    --- csvtohtml.php       (revision 1602603)
    +++ csvtohtml.php       (working copy)
    @@ -313,7 +313,8 @@
                             curl_setopt($curl, CURLOPT_HEADER, false);
                             $curl_data = curl_exec($curl);
                             curl_close($curl);
    -                        $file_arr = explode( "\r\n", $curl_data);
    +                        // support CRLF (windows), LF (linux, mac), or CR (old mac) line endings.
    +                        $file_arr = preg_split("/\r\n|\n|\r/", $curl_data);
    
                             //remove last item from array
                             $x = count ( $file_arr ) - 1;
    
    Plugin Author wibergsweb

    (@wibergsweb)

    Hi!

    Thanks for yor input! I didn’t see this answer until now, but there’s an update out there now. I hope it will work for you 🙂

    Thread Starter sankeytm

    (@sankeytm)

    Thank you very much!

    Plugin Author wibergsweb

    (@wibergsweb)

    You’re welcome! 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘support unix (linefeed-only) line endings’ is closed to new replies.