记住在这个表达式的两侧使用引号使参数和嵌入空格保持在一起,如清单2后部所示。
Remember to use quotes around this expression to keep parameters with embedded Spaces together as you saw back in Listing 2.
在处理数据时,一个规范化字符串将告诉XML处理器删除字符串两边的不必要空格。
A normalized string simply tells the XML processor to remove any unnecessary extra white space surrounding the string when processing the data.
现在,pretty和print这两个词之间出现了一个换行符和大量的空格。
Now, there is a line feed and a whole bunch of Spaces in between pretty and print.
由于空格字符被用来分隔集合中的元素,因此icecream元素(这里没有使用icecream)需要在名字两边使用双引号括起来。
Because the space character separates the elements of a set, the ice cream element needs double quotes around the name (instead of the less attractive icecream, for example).
所以,如果在使用DTD后,仍有不同的空格,那么这两个文档确实是不同的。
So if you have whitespace differences after using one, you don't have identical documents.
请注意,在这两种解决方案中,我都必须让处理器在某些生成的text元素中保留空格。
Note that in both of these solutions, I had to tell the processor to preserve the whitespace in some of the generated text elements.
为了确保能识别出选择列表,您必须将一个分隔符(这个分隔符依次由一个空格,一个句点和两个空格组成):". "添加到分隔符字段。
To make sure that the selection lists are recognized, you must add the delimiter of a space, followed by a period, followed by two spaces: " . " to the delimeter field.
我还能够想出其它几种可以使用这两个过滤器的情况,例如,要在发布HTML文档之前作预处理时除去不想要的空格。
I can think of several other cases when I could use these two filters, for example, to remove unwanted Spaces as preprocessing before publishing HTML documents.
注:由于您可能是复制并粘贴了这段代码,请返回查看并确保每个缩进都是两个空格,并且未使用任何制表符。
NOTE: Since you probably copied and pasted that code, go back and make sure that each indent is two Spaces, and that no tabs were used.
在主机屏幕中,分隔符是一个空格,后接一个句点,然后是两个空格。
In the host screen, the delimiter is a space, followed by a period, followed by two Spaces.
然后让两个XML文档都引用这个DTD,这样就可以尽可能多地区别出空格。
Then have both XML documents reference the DTD, and you can isolate as much whitespace as possible.
使用两个空格表示缩进,而且绝不使用制表符。
因为fr_FR允许空格,所以我们将提供两个函数来验证输入。
As fr_FR allows the blank space, we will provide two functions to validate the input.
以上有几点注意事项:第一,在等号 "="的两边没有空格,任何空格将导致错误(试一下看看)。
There are several things to notice above: first, there is no space on either side of the "=" sign; any space will result in an error (try it and see).
品牌名称最多可包含两个单词,中间可加一个空格。
Brand Name can contain a maximum of two words separated by a space.
所有的属性按照字母顺序排列,前面有一个空格,等号、包含属性值的双引号两侧没有空格。
All attributes in alphabetical order, preceded by a single space, with no space on either side of the equals sign, and double quotes around the attribute value.
相反,可以删除两个词语之间的空格,这个紧凑的词组告诉译者这是不能翻译的变量。
Instead, remove the space between two words to indicate to the translator that these compressed words are non-translatable variables.
现在您需要完成对余下工作的编码,以在输出文档中生成适当的注释,为了便于阅读,注释两端可以加空格。
Now you need to fill in those remaining gaps with code to generate the appropriate comments into the output document, plus some whitespace wrapped around the comments for the sake of readability.
在下面两行的末尾也有类似空格问题。
Similar whitespace appears at the end of the next two lines.
每个名称空间声明之间有一个空格,等号和包含名称空间的URI两侧没有空格。
Use a single space before each namespace declaration, no space on either side of the equals sign, and double quotes around the namespace URI.
这里我们已指定希望子元素从父元素缩进两个空格,并且希望元素间有空行。
Here we've specified that we want child elements indented two Spaces from the parent element, and that we want new lines between elements.
绝大多数情况下,这些字符串属于一条单一语句,并且很容易犯下在字符串两侧遗漏空格的错误。
Most of the time, these strings are part of a single statement, and it's easy to make the mistake of leaving out a space on either side of the strings.
如果你想在文件名里面两个单词之间使用空格,那就用下划线_来代替空格——这样做的话,你以后会感谢你自己现在的做法。
If you want to represent Spaces between words in a file name, use underscore characters. You will thank yourself later.
前两列显示职员的名和姓,第三列显示职员姓名,中间隔个空格。
The first two columns display the first and last name of staff members while the third column displays the first and last name separated by a space.
用于澳大利亚的正则表达式包括州或地区的简称,需要的空格(一个或两个),以及一个四位数,如清单8所示。
The regular expression for Australia, shown in Listing 8, includes the state or territory abbreviation, the required space (either one or two), and a four-digit number.
如果为每个匹配字符一分,一个空格扣两分,一个不匹配字符扣一分,那么下面的比对就是全局最优比对。
If you award matches one point, penalize Spaces by two points, and penalize mismatches by one point, the following is an optimal global alignment.
在上述模式之间,必须使用[[:space:]] +对它们进行连接,因为您并不知道这些列之间究竟是使用空格或制表符,还是两者的组合进行分隔。
In between, you'll have to join these patterns with [[: space:]] +, since you have no idea the columns are separated by Spaces or tabs, or a combination.
因为Python需要缩进以错开当表达式计算为True或False时应该执行的语句块,所以两个print语句都缩进了4个空格。
Because Python requires indentation to offset the block of statements that should be executed if the expression evaluates True or False, the two print statements are both indented four Spaces.
清单16使用cut来分隔text2中的两个列,然后使用空格作为输出分隔符,这是一种将每行中的制表符替换为空格的好方法。
Listing 16 USES cut to separate the two columns of text2 and then USES a space as an output delimiter, which is an exotic way of converting the TAB in each line to a space.
不幸的是,您不能使用unexpand将text1中的空格替换为制表符,因为unexpand至少需要两个空格才能替换为制表符。
Unfortunately, you cannot use unexpand to replace the Spaces in text1 with tabs, as unexpand requires at least two Spaces to convert to tabs.
应用推荐