Welcome Guest, Not a member yet? Register   Sign In
why CI have to Standardizes newline? it changes 1 newline to double newline (CI2.0)
#7

[eluser]furball[/eluser]
will this work?

Code:
// Standardize newlines if needed
        if ($this->_standardize_newlines == TRUE)
        {
            if (strpos($str, "\r") !== FALSE)
            {
                //$str = str_replace(array( "\r\n", "\r"), PHP_EOL, $str);
                $str = preg_replace('/(?:\r\n|[\r\n])/', PHP_EOL, $str);

            }
        }


Messages In This Thread
why CI have to Standardizes newline? it changes 1 newline to double newline (CI2.0) - by El Forum - 02-27-2011, 03:07 PM



Theme © iAndrew 2016 - Forum software by © MyBB