问题
Using Notepad++ on a windows box, (100s of files into a plugin I've been developing for Wordpress) I bumped up against a problem wherein the differences in newline characters between Linux and Dos/Windows causes some of my scripts to break when hosted on a LAMP server, which otherwise work fine on my WAMP Dev Server. Reading up on Notepad++ EOL Conversion, one might infer that a different code base must be maintained for each, but surely that's not the case?
- How does one ensure EOL compatibility on BOTH Linux and Dos/Windows servers?
- How best to bring 100's of files into compliance?
来源:https://stackoverflow.com/questions/16570119/eol-compatibility-on-both-linux-and-dos-windows-servers