-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix bug that \r\n are visible at the end of lines. #1
Conversation
I've fixed this in 1.9.9, it was caused by using single quotes. That line is to ensure that any line using \r or \n uses \r\n so that it's windows compatible as well. |
NO, NO! |
The regex "(\r(?!\n))|((?<!\r)\n)" doesn't create line breaks or carriage returns, it merely converts \r and \n to \r\n, but only if they aren't \r\n. If there's still a problem could you give an example? |
Test – Crayon Syntax Highlighter | Re: no subject Please see. I used the original code, http://privatepaste.com/056b54d69c by the way, I use WordPress 3.4. |
Sorry about that, fixed in the last commit. |
OK, the latest commit seems fine ;) |
Great! The problem was I hadn't accounted the \r\n into the code that split lines (It used $, which comes after \r and before \n) |
This bug seems to appear again after commit 82d11a5 Test – Crayon Syntax Highlighter Please see. I used the original code, http://privatepaste.com/056b54d69c |
Have a look at the latest commits. I'm going to work with git from now on rather than svn and only use it for releases. I'm making a new branch for the tag editor. |
I pulled dba1714, but this problem isn't solved. |
Sorry, I discovered the cause after I wrote that. Try 071c38b. |
Fixed this problem with 071c38b :D |
Great, in the future I'll make sure the repo is handled better now that I'm using Git primarily. |
All right. |
Only if something is broken. Consider the tags on svn official and everything on github as development. |
No description provided.