EOL compatibility on BOTH Linux and Dos/Windows servers?

孤人 提交于 2019-12-11 20:25:58

问题


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?

  1. How does one ensure EOL compatibility on BOTH Linux and Dos/Windows servers?
  2. How best to bring 100's of files into compliance?

来源:https://stackoverflow.com/questions/16570119/eol-compatibility-on-both-linux-and-dos-windows-servers

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!