help: fix layout of pre-formatted text
authorYuya Nishihara <yuya@tcha.org>
Thu, 09 Mar 2017 12:55:48 +0900
changeset 31287 16539e32ebe0
parent 31286 f8df87018ae9
child 31288 198cd5ad9db8
help: fix layout of pre-formatted text
mercurial/help/internals/changegroups.txt
tests/test-help.t
--- a/mercurial/help/internals/changegroups.txt	Thu Mar 09 11:01:03 2017 +0900
+++ b/mercurial/help/internals/changegroups.txt	Thu Mar 09 12:55:48 2017 +0900
@@ -108,7 +108,7 @@
 series of *delta*s, densely packed (no separators). These deltas describe a diff
 from an existing entry (either that the recipient already has, or previously
 specified in the bundle/changegroup). The format is described more fully in
-``hg help internals.bdiff``, but briefly:
+``hg help internals.bdiff``, but briefly::
 
    +---------------------------------------------------------------+
    |              |            |            |                      |
--- a/tests/test-help.t	Thu Mar 09 11:01:03 2017 +0900
+++ b/tests/test-help.t	Thu Mar 09 12:55:48 2017 +0900
@@ -1063,12 +1063,12 @@
       has, or previously specified in the bundle/changegroup). The format is
       described more fully in "hg help internals.bdiff", but briefly:
   
-         +---------------------------------------------------------------+ |
-         |            |            |                      | | start offset | end
-         offset | new length |        content       | |  (4 bytes)   |  (4
-         bytes) |  (4 bytes) | (<new length> bytes) | |              |
-         |            |                      |
-         +---------------------------------------------------------------+
+        +---------------------------------------------------------------+
+        |              |            |            |                      |
+        | start offset | end offset | new length |        content       |
+        |  (4 bytes)   |  (4 bytes) |  (4 bytes) | (<new length> bytes) |
+        |              |            |            |                      |
+        +---------------------------------------------------------------+
   
       Please note that the length field in the delta data does *not* include
       itself.
@@ -3199,14 +3199,14 @@
   specified in the bundle/changegroup). The format is described more fully in
   &quot;hg help internals.bdiff&quot;, but briefly:
   </p>
-  <p>
+  <pre>
   +---------------------------------------------------------------+
   |              |            |            |                      |
   | start offset | end offset | new length |        content       |
   |  (4 bytes)   |  (4 bytes) |  (4 bytes) | (&lt;new length&gt; bytes) |
   |              |            |            |                      |
   +---------------------------------------------------------------+
-  </p>
+  </pre>
   <p>
   Please note that the length field in the delta data does *not* include itself.
   </p>