How do I make Adobe Flash Professional CS5 stop putting raw carriage returns in .as files?
December 21, 2010 9:05 AM   Subscribe

How do I make Adobe Flash Professional CS5 stop putting raw carriage returns in .as files?

This is madness. No line feed, just a bare ^M. This makes the files unusable for version control, since it thinks the file is one great big long line.

How do I make it stop?
posted by ivey to Computers & Internet (2 answers total)
 
Yuck, that's the old newline that was used on Mac OS 9 and below! I wonder why Adobe is still using it; that's pretty irresponsible of them to not use the OS X/Unix newline, which is a bare line feed. ( I am assuming you're on OS X; if they're using a bare carriage return on Windows, that's even more bizarre)

There are several utilities that can convert between newline formats. Flip is a command line converter; ConvertNewlines is a frontend for it.
posted by zsazsa at 9:19 AM on December 21, 2010


It's possible that you could use a pre-commit hook to run perl -i -pe 'tr{\r}{\n}' $filename (or mac2unix $filename if you have that installed.)
posted by Rhomboid at 9:53 AM on December 21, 2010


« Older Does a prefabricated, sturdy keyboard (synth)...   |   magazines for teenagers. Newer »
This thread is closed to new comments.