Navigation Menu

Skip to content
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 the line endings on the Flash .as files #834

Merged
merged 1 commit into from Apr 12, 2013

Conversation

markjaquith
Copy link
Contributor

Many of the Flash .as source files have wonky DOS style line endings. Git seems to treat them as a single line, which means that when a single character changes, the diff will show the entire file as being different.

To fix them, I opened them in vim and ran:

%s/^M/\r/g

Note: You can't just type ^M, you have to type Ctrl-V, Ctrl-M to get this magic character to appear. You'll know you did it right if you get a highlighted ^M like this:

vim-ctrl-v-ctrl-m

And then I ran.

set ff=unix

johndyer added a commit that referenced this pull request Apr 12, 2013
Fix the line endings on the Flash `.as` files
@johndyer johndyer merged commit 01799b2 into mediaelement:master Apr 12, 2013
@svoynow
Copy link
Contributor

svoynow commented Apr 16, 2013

This problem is going to keep recurring, due to the way the Flash Professional deals with line endings. I think the solution is to have Git launder the line endings on check-in.

https://help.github.com/articles/dealing-with-line-endings.

Looks like somebody tried to do this w/ a7afd52.
But if the problem has recurred since then (and it appears from this pull request that it has), maybe it wasn't done correctly?

phuongdh pushed a commit to avalonmediasystem/mediaelement that referenced this pull request Oct 18, 2013
…ndings

Fix the line endings on the Flash `.as` files
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
…ndings

Fix the line endings on the Flash `.as` files
rexblack pushed a commit to rexblack/mediaelement that referenced this pull request May 22, 2014
…ndings

Fix the line endings on the Flash `.as` files
marmite22 pushed a commit to elucidat/mediaelement that referenced this pull request Dec 16, 2016
…ndings

Fix the line endings on the Flash `.as` files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants