我怎么才能使文本换行呢?
如果文本太长,在显示屏放不下的话,会自动换行。
换行永远都会匹配第一个规则。
清单2是一个使用换行符的示例。
换行和缩进使得文档更容易阅读。
The line breaks and indentation help make it easier to read.
添加换行符是为了增加可读性。
这里有一个换行,因此可能有一些尾随的空格。
There's a line feed there, and there might be some trailing spaces.
标志是用来控制替换行为的单个字符。
The flags are single characters that control the substitution's behavior.
当数据包含换行符时,这就更重要了。
This is even more important when the data contain line breaks.
行定界符总是换行符,不能自由选择。
The row delimiter is always the line break and cannot be chosen freely.
WRAP —— 从控件的右边换行。
该示例在中用元素标明换行。
Notice that the example USES elements inside the to indicate line breaks. Here's the equivalent XSL-FO markup.
清单9.shell脚本中的换行。
注意,清单代码换行是为了适应页面宽度。
新的一段总是换行开始。
在那里,我们使用了一个过滤器来消除换行。
更确切地讲,它可使窗口小部件在行尾换行。
注意,\字符表示用于格式化目的的换行符。
Note that the \ characters are to indicate a line break for formatting purposes.
排版功能可以实现单词换行和调整多行文本。
Layout capabilities to word-wrap and justify multi-line text.
然后,它使用空格替换换行、下划线和连字符。
Then it replaces line breaks, underscores, and hyphens with blanks.
您只需向无序清单中添加一个换行符和描述行。
You simply add a line break and description line to the unordered list.
因此,该示例的输出将不包含任何换行或缩进。
Thus, the output from this example will not have line breaks or indentation.
让我相信换行和缩进能保证代码的结构和运行?
Trust newlines and indents to keep my code not only structured but running?
通过传入标志,创建滚动条,并告诉文本换行。
You pass in flags to create scroll bars and to tell the text to wrap.
这里要做的全部工作是匹配数字、运算符和换行。
你还可以指定转换制图的细节以及通常的转换行为。
You can also specify transformation mapping details, as well as common transformation actions.
换行导致每个选项卡上的组件期望的屏幕空间减小。
Wrapping causes the expected screen space for the components on each TAB to decrease.
这意味着,拥有一个自动换行的系统是多么地重要。
This means that having a system of automatic line breaking is far more important.
想到这些我开始考虑回到西雅图去,为自己换行业。
I was starting to think about moving back to Seattle to try something new, maybe in a different industry.
注意:换行符方便您阅读代码,它不会影响XML。
Note: the line breaks make it easier for you to read your code and do not affect the XML.
应用推荐