Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我找不到 troff 文件格式的规范。删除尾随空格是否有效果?
groff 手册第5 章说,对于阅读普通文本:
单词之间的额外空格被保留,但行尾的空格被忽略。
(有一些例外,例如用 定义字符串时.ds)。你可以自己试验一下:
.ds
echo -e 'a b \nc d' | nroff -man | cat -vet a b c d$ $