Mark down adding white space
Hi,
I noticed that when using a text field type then fuel admin shows the markdown editor if you add text with blank lines between on each save it adds more blank lines.
The white space shows in phpmyadmin table view and in the editor the lines move further apart.
Tried looking for a config option but think it may be a bug.
It doesn't happen on 0.9.1 version.
You can see it happening if you edit a blog post and add a return for a new line and save a few times you'll see the extra blank lines get added.
Comments
I'll check it out on my end too.
However if i did disable javascript and saved and the extra lines still get added so maybe it's not the editor?
$str = str_replace(array("\r\n", "\r"), "\n", $str);
TO
$str = str_replace(array("\r\n", "\r"), EOL, $str);
Changing the EOL back to the "\n" seemed to fixed that issue. I may do a MY_Input.php and extend that core to put in that fix, but will check the CI 2 bitbucket repo to see if this was reported elsewhere.
https://bitbucket.org/ellislab/codeigniter/issue/332/newlines-in-textareas-are-duplicated
The person reporting it seemed to just set "_standardize_newlines" = FALSE in that class.
Regardless, it sounds like I need to extend the core to put in this fix until CI 2 releases a patch.