From fbc86f88443bfd99b0c2d4b01c170829dd032a65 Mon Sep 17 00:00:00 2001 From: zhufl Date: Fri, 3 Aug 2018 09:56:59 +0800 Subject: [PATCH] Fix none-ascii char in doc There exist some none-ascii chars in doc, which may cause trouble in displaying. Change-Id: I1ebf83fb4e8cc853fd7f3065ecf420a064c9983f --- api-guide/source/faults.rst | 6 +++--- api-guide/source/links_and_references.rst | 4 ++-- api-guide/source/paginated_collections.rst | 2 +- api-guide/source/versions.rst | 6 +++--- doc/source/admin/configuration/hypervisor-hyper-v.rst | 4 ++-- doc/source/admin/support-compute.rst | 2 +- doc/source/reference/threading.rst | 2 +- doc/source/user/config-drive.rst | 2 +- doc/source/user/launch-instance-from-volume.rst | 4 ++-- 9 files changed, 16 insertions(+), 16 deletions(-) diff --git a/api-guide/source/faults.rst b/api-guide/source/faults.rst index 8a88fa429e72..88d0cca5f9c8 100644 --- a/api-guide/source/faults.rst +++ b/api-guide/source/faults.rst @@ -144,7 +144,7 @@ API status code. The system also returns additional information about the fault in the body of the response. -**Example: Fault: JSON response** +**Example: Fault: JSON response** .. code:: @@ -158,7 +158,7 @@ information about the fault in the body of the response. The error ``code`` is returned in the body of the response for convenience. The ``message`` section returns a human-readable message that is appropriate for display to the end user. The ``details`` section is optional and may -contain information—for example, a stack trace—to assist in tracking +contain information--for example, a stack trace--to assist in tracking down an error. The ``details`` section might or might not be appropriate for display to an end user. @@ -189,7 +189,7 @@ faults may also contain a ``created`` timestamp that specifies when the fault occurred. -**Example: Server in error state: JSON response** +**Example: Server in error state: JSON response** .. code:: diff --git a/api-guide/source/links_and_references.rst b/api-guide/source/links_and_references.rst index 37adeac3171c..339d874e24e3 100644 --- a/api-guide/source/links_and_references.rst +++ b/api-guide/source/links_and_references.rst @@ -30,7 +30,7 @@ exists in the current OpenStack deployment. } -**Example: Full image reference: JSON request** +**Example: Full image reference: JSON request** .. code:: @@ -97,7 +97,7 @@ following types of link relations are associated with resources: } -**Example: Server with alternate link: JSON** +**Example: Server with alternate link: JSON** .. code:: diff --git a/api-guide/source/paginated_collections.rst b/api-guide/source/paginated_collections.rst index 52203ecdcb0d..08f7d137be68 100644 --- a/api-guide/source/paginated_collections.rst +++ b/api-guide/source/paginated_collections.rst @@ -32,7 +32,7 @@ links to traverse a paginated collection without having to input the *``marker``* parameter. -**Example: Servers collection: JSON (first page)** +**Example: Servers collection: JSON (first page)** .. code:: diff --git a/api-guide/source/versions.rst b/api-guide/source/versions.rst index 1ba2d159a7e6..ee8ce9fed6c7 100644 --- a/api-guide/source/versions.rst +++ b/api-guide/source/versions.rst @@ -12,7 +12,7 @@ A version MIME type is always linked to a base MIME type, such as application/json. If conflicting versions are specified using both an HTTP header and a URI, the URI takes precedence. -**Example: Request with MIME type versioning** +**Example: Request with MIME type versioning** .. code:: @@ -22,7 +22,7 @@ header and a URI, the URI takes precedence. X-Auth-Token: eaaafd18-0fed-4b3a-81b4-663c99ec1cbb -**Example: Request with URI versioning** +**Example: Request with URI versioning** .. code:: @@ -44,7 +44,7 @@ headers, then a multiple-choices response (300) follows that provides links and MIME types to available versions. -**Example: Multiple choices: JSON response** +**Example: Multiple choices: JSON response** .. code:: diff --git a/doc/source/admin/configuration/hypervisor-hyper-v.rst b/doc/source/admin/configuration/hypervisor-hyper-v.rst index 4180ae70b7ac..0959c7cad1b3 100644 --- a/doc/source/admin/configuration/hypervisor-hyper-v.rst +++ b/doc/source/admin/configuration/hypervisor-hyper-v.rst @@ -223,7 +223,7 @@ properly on the 64bit version. PS C:\> $src = "https://www.python.org/ftp/python/2.7.3/python-2.7.3.msi" PS C:\> $dest = "$env:temp\python-2.7.3.msi" - PS C:\> Invoke-WebRequest –Uri $src –OutFile $dest + PS C:\> Invoke-WebRequest -Uri $src -OutFile $dest PS C:\> Unblock-File $dest PS C:\> Start-Process $dest @@ -310,7 +310,7 @@ Download the nova code PS C:\> $src = "https://github.com/msysgit/msysgit/releases/download/Git-1.9.2-preview20140411/Git-1.9.2-preview20140411.exe" PS C:\> $dest = "$env:temp\Git-1.9.2-preview20140411.exe" - PS C:\> Invoke-WebRequest –Uri $src –OutFile $dest + PS C:\> Invoke-WebRequest -Uri $src -OutFile $dest PS C:\> Unblock-File $dest PS C:\> Start-Process $dest diff --git a/doc/source/admin/support-compute.rst b/doc/source/admin/support-compute.rst index 8a482d6dcf0d..04b8eed98d4d 100644 --- a/doc/source/admin/support-compute.rst +++ b/doc/source/admin/support-compute.rst @@ -359,7 +359,7 @@ compute host to the storage array: Failed to connect to volume 6f6a6a9c-dfcf-4c8d-b1a8-4445ff883200 while\ attaching at /dev/vdjTRACE nova.compute.manager [instance: 60ebd6c7-c1e3-4\ bf0-8ef0-f07aa4c3d5f3|instance: 60ebd6c7-c1e3-4bf0-8ef0-f07aa4c3d5f3] - Traceback (most recent call last):…f07aa4c3d5f3\] ClientException: The\ + Traceback (most recent call last):...f07aa4c3d5f3\] ClientException: The\ server has either erred or is incapable of performing the requested\ operation.(HTTP 500)(Request-ID: req-71e5132b-21aa-46ee-b3cc-19b5b4ab2f00) diff --git a/doc/source/reference/threading.rst b/doc/source/reference/threading.rst index 3836ff610c99..cc463e9ba53f 100644 --- a/doc/source/reference/threading.rst +++ b/doc/source/reference/threading.rst @@ -32,7 +32,7 @@ delays in the case that there is only a single green thread:: ... greenthread.sleep(0) -In current code, time.sleep(0)does the same thing as greenthread.sleep(0) if +In current code, time.sleep(0) does the same thing as greenthread.sleep(0) if time module is patched through eventlet.monkey_patch(). To be explicit, we recommend contributors use ``greenthread.sleep()`` instead of ``time.sleep()``. diff --git a/doc/source/user/config-drive.rst b/doc/source/user/config-drive.rst index c53ab4d1b1db..feba61d2da84 100644 --- a/doc/source/user/config-drive.rst +++ b/doc/source/user/config-drive.rst @@ -281,4 +281,4 @@ systems. However, to use the VFAT format, add the following line to the config_drive_format=vfat -If you choose VFAT, the configuration drive is 64 MB. +If you choose VFAT, the configuration drive is 64 MB. diff --git a/doc/source/user/launch-instance-from-volume.rst b/doc/source/user/launch-instance-from-volume.rst index 618dae6a8fa8..a79e2cf59150 100644 --- a/doc/source/user/launch-instance-from-volume.rst +++ b/doc/source/user/launch-instance-from-volume.rst @@ -262,7 +262,7 @@ the volume to boot an instance. .. note:: A bootable encrypted volume can also be created by adding the - `-–type ENCRYPTED_VOLUME_TYPE` parameter to the volume create command: + `--type ENCRYPTED_VOLUME_TYPE` parameter to the volume create command: .. code-block:: console @@ -362,7 +362,7 @@ Use the ``nova boot`` ``--swap`` parameter to attach a swap disk on boot or the ``nova boot`` ``--ephemeral`` parameter to attach an ephemeral disk on boot. When you terminate the instance, both disks are deleted. -Boot an instance with a 512 MB swap disk and 2 GB ephemeral disk. +Boot an instance with a 512 MB swap disk and 2 GB ephemeral disk. .. code-block:: console