文件在记事本/Mercurial 托管存储库中显示为全部在一行上
我注意到一些文件在 Mercurial 中显示为全部在一行上。其他人(大多数)则不然。
当在记事本中打开一个可以的和一个不可以的时,我可以看到同样的问题,记事本显示文件的空白遍布整个地方,并且在新行应该出现的地方显示小方块。
这是怎么回事?我该如何解决?我怀疑这与文件编码有关。
我不太确定该标记什么 - 这并不是真正的 Mercurial 问题
I noticed some files were showing up in Mercurial as being all on one line. Others (most) don't.
When opening one that does and one that doesn't in Notepad I can see the same problem, Notepad shows the file's whitespace to be all over the place and little squares where new lines should be.
What's going on and how can I fix it? I suspect it to be something to do with the file encoding.
I'm not really sure what to tag this as - it's not really a Mercurial problem
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可能在文件中编码了错误的行结尾。快速谷歌拉出此页面,可能有用。
尝试在更高级的编辑器中打开文件,例如 Notepad++,然后打开行结束字符的显示以查看究竟发生了什么。
You probably have the wrong line endings encoded in the files. Quick google pulls up this page which may be of use.
Try opening the files in a more advanced editor like Notepad++ and then turn on display of line ending characters to see exactly what is going on.