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?
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?
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
posted by Rhomboid at 9:53 AM on December 21, 2010
This thread is closed to new comments.
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