Browse Source

Fix broken text formatting

Tatsuhiro Tsujikawa 8 years ago
parent
commit
a28396065e
2 changed files with 10 additions and 4 deletions
  1. 3 1
      doc/manual-src/en/aria2c.rst
  2. 7 3
      doc/manual-src/en/technical-notes.rst

+ 3 - 1
doc/manual-src/en/aria2c.rst

@@ -4124,7 +4124,9 @@ Specify the output file name
 
 
 To specify the output file name for BitTorrent downloads, you need to know
 To specify the output file name for BitTorrent downloads, you need to know
 the index of file in the torrent (see :option:`--show-files <-S>`). For
 the index of file in the torrent (see :option:`--show-files <-S>`). For
-example, the output looks like this::
+example, the output looks like this:
+
+.. code-block:: text
 
 
   idx|path/length
   idx|path/length
   ===+======================
   ===+======================

+ 7 - 3
doc/manual-src/en/technical-notes.rst

@@ -8,7 +8,9 @@ Control File (\*.aria2) Format
 ------------------------------
 ------------------------------
 
 
 The control file uses a binary format to store progress information of
 The control file uses a binary format to store progress information of
-a download. Here is the diagram for each field::
+a download. Here is the diagram for each field:
+
+.. code-block:: text
 
 
      0                   1                   2                   3
      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
@@ -45,7 +47,7 @@ a download. Here is the diagram for each field::
 
 
 ``EXT`` (EXTENSION): 4 bytes
 ``EXT`` (EXTENSION): 4 bytes
    If LSB is 1(i.e. ``EXT[3]&1 == 1``), aria2 checks whether the saved
    If LSB is 1(i.e. ``EXT[3]&1 == 1``), aria2 checks whether the saved
-   !InfoHash and current downloading one are the same. If they are not
+   InfoHash and current downloading one are the same. If they are not
    the same, an exception is thrown. This is called "infoHashCheck"
    the same, an exception is thrown. This is called "infoHashCheck"
    extension.
    extension.
 
 
@@ -104,7 +106,9 @@ aria2 saves IPv4 DHT routing table in
 ``dht.dat`` and ``dht6.dat`` files use same binary encoding and have
 ``dht.dat`` and ``dht6.dat`` files use same binary encoding and have
 following fields. All multi byte integers are in network byte
 following fields. All multi byte integers are in network byte
 order. ``RSV`` (RESERVED) fields are reserved for future use. For now
 order. ``RSV`` (RESERVED) fields are reserved for future use. For now
-they should be all zeros::
+they should be all zeros:
+
+.. code-block:: text
 
 
      0                   1                   2                   3
      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1