简体   繁体   English

如何控制Lua DOS <==> Unix输出的行尾

[英]How to control line endings output by lua DOS<==>Unix

I am using luadoc and running it on Unix and windows, unfortunately the output is different on each system because of the DOS/Unix line endings, this really confuses my source control as it thinks every file has changed (mercurial). 我正在使用luadoc并在Unix和Windows上运行它,不幸的是,由于DOS / Unix行尾,每个系统的输出都是不同的,这使我的源代码控制非常混乱,因为它认为每个文件都已更改(Mercurial)。 How can I make lua use one or the other? 如何让Lua使用其中之一?

I know nothing about lua, but you might want to solve this at the SCM level, Mercurial has the EolExtension for that. 我对lua一无所知,但您可能想在SCM级别上解决此问题,Mercurial 为此提供了EolExtension

That being said, you're probably missing some feature of luadoc. 话虽如此,您可能缺少luadoc的某些功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM