[svnbook] r5388 committed - branches/1.8/zh/book/ch03-advanced-topics.xml
wuzhouhui at users.sourceforge.net
wuzhouhui at users.sourceforge.net
Tue Aug 8 08:45:44 CDT 2017
Revision: 5388
http://sourceforge.net/p/svnbook/source/5388
Author: wuzhouhui
Date: 2017-08-08 13:45:43 +0000 (Tue, 08 Aug 2017)
Log Message:
-----------
1.8/zh: translation of chapter 3 in progress
Modified Paths:
--------------
branches/1.8/zh/book/ch03-advanced-topics.xml
Modified: branches/1.8/zh/book/ch03-advanced-topics.xml
===================================================================
--- branches/1.8/zh/book/ch03-advanced-topics.xml 2017-08-07 13:48:33 UTC (rev 5387)
+++ branches/1.8/zh/book/ch03-advanced-topics.xml 2017-08-08 13:45:43 UTC (rev 5388)
@@ -5085,6 +5085,7 @@
</programlisting>
</informalexample>
+ <!--
<para>The result is not so beautiful. And you might be
tempted to then adjust the file after the substitution so
that it again looks tabular. But that holds only as long as
@@ -5095,6 +5096,13 @@
you are using Subversion 1.2 or later, you can use the new
fixed-length keyword syntax and define some field widths that
seem sane, so your file might look like this:</para>
+ -->
+ <para>替换后的效果令人感到失望, 用户可能会忍不住手工地调整每一行没对齐的
+ 文本, 但是实际上只要关键字的值占用相同的宽度, 格式就不会被打乱. 如果版本
+ 号增长到比较长的位数 (例如从 99 增长到 100), 或者有一个名字很长的用户提
+ 交修改, 文件的版式就得重新调整. 如果用户使用的 Subversion 版本大于等于
+ 1.2, 就可以使用具有固定长度的关键字语法, 为了使用这种关键字语法, 把文件
+ 的内容改成:</para>
<informalexample>
<programlisting>
@@ -5104,6 +5112,7 @@
</programlisting>
</informalexample>
+ <!--
<para>You commit this change to your file. This time,
Subversion notices the new fixed-length keyword syntax and
maintains the width of the fields as defined by the padding
@@ -5113,6 +5122,11 @@
<literal>Rev</literal> and <literal>Author</literal> are
padded with spaces, and the long <literal>Date</literal>
field is truncated by a hash character:</para>
+ -->
+ <para>提交修改, 这次 Subversion 会注意到文件中使用了具有固定长度的关键字语
+ 法, 替换后, 字段的长度保持不变—较短的 <literal>Rev</literal> 和
+ <literal>Author</literal> 使用空格填充不足的部分, 较长的 <literal>Date
+ </literal> 被井字符截断:</para>
<informalexample>
<programlisting>
More information about the svnbook-dev
mailing list