[Please do not mail me a copy of your followup]
boost@lists.boost.org spake the secret code
Jonathan Wakely wrote:
Really? How many Windows text editors can't handle non-native line endings these days? (Notepad doesn't count as a text editor, and IMHO it's reasonable to expect Boost contributors to use something other than Notepad - if you can write C++ that works with multiple compilers on multiple platforms then you can use a proper editor.)
You have to remember to set the line endings for every new file though.
There have been some vague non-specific comments on this thread like "one very popular code editor". Instead of being vague, I'll be specific. If you're a Visual Studio user, the "stripem" add-on allows you to enforce a particular line ending for file names matching a regular expression. Where I work, we require LF line endings for source files and I have used this add-on to enforce that requirement. It works great and handles new files and existing files alike. *poof* No need to remember to do a manual step anymore. http://www.grebulon.com/software/stripem.php -- "The Direct3D Graphics Pipeline" free book http://tinyurl.com/d3d-pipeline The Computer Graphics Museum http://computergraphicsmuseum.org The Terminals Wiki http://terminals.classiccmp.org Legalize Adulthood! (my blog) http://legalizeadulthood.wordpress.com