我怎么才能使文本换行呢?
如果文本太长,在显示屏放不下的话,会自动换行。
换行永远都会匹配第一个规则。
清单2是一个使用换行符的示例。
换行和缩进使得文档更容易阅读。
The line breaks and indentation help make it easier to read.
添加换行符是为了增加可读性。
行定界符总是换行符,不能自由选择。
The row delimiter is always the line break and cannot be chosen freely.
标志是用来控制替换行为的单个字符。
The flags are single characters that control the substitution's behavior.
当数据包含换行符时,这就更重要了。
This is even more important when the data contain line breaks.
WRAP —— 从控件的右边换行。
s——空白字符,如制表符或换行符。
清单9.shell脚本中的换行。
在浏览器中输入下面的内容(不要换行)
注意,清单代码换行是为了适应页面宽度。
删除整行(即使该行在屏幕上是自动换行的)。
新的一段总是换行开始。
在那里,我们使用了一个过滤器来消除换行。
注意,\字符表示用于格式化目的的换行符。
Note that the \ characters are to indicate a line break for formatting purposes.
更确切地讲,它可使窗口小部件在行尾换行。
因此,该示例的输出将不包含任何换行或缩进。
Thus, the output from this example will not have line breaks or indentation.
排版功能可以实现单词换行和调整多行文本。
Layout capabilities to word-wrap and justify multi-line text.
然后,它使用空格替换换行、下划线和连字符。
Then it replaces line breaks, underscores, and hyphens with blanks.
通过传入标志,创建滚动条,并告诉文本换行。
You pass in flags to create scroll bars and to tell the text to wrap.
您只需向无序清单中添加一个换行符和描述行。
You simply add a line break and description line to the unordered list.
main的最后一行在输出中加入了一个换行。
这里要做的全部工作是匹配数字、运算符和换行。
换行导致每个选项卡上的组件期望的屏幕空间减小。
Wrapping causes the expected screen space for the components on each TAB to decrease.
应用推荐