【问题标题】:How do I add a blank line in an unix man page using groff?如何使用 groff 在 unix 手册页中添加空行?
【发布时间】:2012-07-16 12:48:25
【问题描述】:

我尝试了以下方法,但它不起作用:

.SH ADD A NEW TEST
Everytime you invoke a command within the shell,
this is what actually happens: the shell search for a folder
named as your command inside the directory
.B path/to/framework/Tests
or any subfolder,
if it finds such a folder, it will search for a file called
main.pl and will launch it.
.br
.br
Adding a new test is easy as create a new folder, put a main.pl
file inside it and invoke the folder name. Of course, for a better
integration with the whole system you should follow
some guide lines. Invoke the command
.B skeleton
to find out where the skeleton file is installed in your
system. Have a look to that file. It's well commented and
cover all possibile case and scenarios. Use it as a model to write
your own test.

第二个.br 被忽略。

【问题讨论】:

  • nroff 有段落的概念,而不是空行。只需输入一个空行即可开始一个新段落,但是not意味着在输出的段落之间添加一个空行。

标签: manpage groff


【解决方案1】:

我能够在段落开始时使用.PP 来完成它。

.SH ADD A NEW TEST
.PP
Everytime you invoke a command within the shell,
this is what actually happens: the shell search for a folder
named as your command inside the directory
.B path/to/framework/Tests
or any subfolder,
if it finds such a folder, it will search for a file called
main.pl and will launch it.
.PP
Adding a new test is easy as create a new folder, put a main.pl
file inside it and invoke the folder name. Of course, for a better
integration with the whole system you should follow
some guide lines. Invoke the command
.B skeleton
to find out where the skeleton file is installed in your
system. Have a look to that file. It's well commented and
cover all possibile case and scenarios. Use it as a model to write
your own test.

【讨论】:

  • .PP.LP 开始一个新段落,但.sp n 增加了 n 行的垂直空间。不确定你想要什么以及为什么想要它。
猜你喜欢
  • 1970-01-01
  • 2022-09-24
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-01-31
  • 2018-11-18
相关资源
最近更新 更多