Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
写了一个程序,对于文本显示的不同!
deepin Talks
1114
views ·
7
replies ·
To
floor
Go
eagle96
deepin
2016-11-24 22:45
Author
用Lazarus写了一个linux下运行的程序,程序可以记忆窗体的左边、顶边位置,使用的是writeln方法写入了两行,用了记事本来存储。但是发现在win下面记事本的内容变成一行了!这是因为什么造成的呢?
Reply
Like 0
Favorite
View the author
All Replies
jingle
deepin
2016-11-24 23:24
#1
没有'\n'吧
Reply
Like 0
View the author
MattD
deepin
2016-11-24 23:40
#2
Unix和Windows换行符不同(Unix:\n,Windows:\r\n),需要用dos2unix这样的工具转换下换行符再去Windows下面打开。
Reply
Like 0
View the author
jingle
deepin
2016-11-24 23:46
#3
楼上正解 sudo apt-get install dos2unix 安装个就可以了
Reply
Like 0
View the author
阿里里
deepin
2016-11-26 01:25
#4
我平时写一些文字的东西,也一直有这样的问题,所以后来就用WIZ NOTE了。跨平台。
Reply
Like 0
View the author
h***w@163.com
deepin
2016-11-27 06:08
#5
在win中用EmEditor之类的文本编辑器就好了,win自带的记事本不认Linux的换行
Reply
Like 0
View the author
h***w@163.com
deepin
2016-11-27 06:31
#6
推荐下载一个单文件版的notepad++替换win自带的记事本。
Reply
Like 0
View the author
eagle96
deepin
2016-11-27 08:22
#7
谢谢各位,用note++后确实win下也显示正常了!
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More