From 22d36aa0f8c67829d09aa5157f16deee6b440ec0 Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Sat, 17 Dec 2022 12:42:36 +0100 Subject: Help: string(JSON): avoid duplicate labels --- Help/command/string.rst | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Help/command/string.rst b/Help/command/string.rst index 86cbd2ece2..86136a6edd 100644 --- a/Help/command/string.rst +++ b/Help/command/string.rst @@ -45,16 +45,16 @@ Synopsis `JSON`_ string(JSON [ERROR_VARIABLE ] - {`GET`_ | `TYPE`_ | :ref:`LENGTH ` | `REMOVE`_} + {:ref:`GET ` | :ref:`TYPE ` | :ref:`LENGTH ` | :ref:`REMOVE `} [ ...]) string(JSON [ERROR_VARIABLE ] - `MEMBER`_ + :ref:`MEMBER ` [ ...] ) string(JSON [ERROR_VARIABLE ] - `SET`_ + :ref:`SET ` [ ...] ) string(JSON [ERROR_VARIABLE ] - `EQUAL`_ ) + :ref:`EQUAL ` ) Search and Replace ^^^^^^^^^^^^^^^^^^ @@ -575,7 +575,7 @@ Functionality for querying a JSON string. option is not present, a fatal error message is generated. If no error occurs, the ```` will be set to ``NOTFOUND``. -.. _GET: +.. _JSON_GET: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -588,7 +588,7 @@ Boolean elements will be returned as ``ON`` or ``OFF``. Null elements will be returned as an empty string. Number and string types will be returned as strings. -.. _TYPE: +.. _JSON_TYPE: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -599,7 +599,7 @@ given by the list of ```` arguments. The ```` will be set to one of ``NULL``, ``NUMBER``, ``STRING``, ``BOOLEAN``, ``ARRAY``, or ``OBJECT``. -.. _MEMBER: +.. _JSON_MEMBER: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -610,7 +610,7 @@ Get the name of the ````-th member in ```` at the location given by the list of ```` arguments. Requires an element of object type. -.. _JSONLENGTH: +.. _JSON_LENGTH: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -620,7 +620,7 @@ Get the length of an element in ```` at the location given by the list of ```` arguments. Requires an element of array or object type. -.. _REMOVE: +.. _JSON_REMOVE: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -630,7 +630,7 @@ Remove an element from ```` at the location given by the list of ```` arguments. The JSON string without the removed element will be stored in ````. -.. _SET: +.. _JSON_SET: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] @@ -640,7 +640,7 @@ Set an element in ```` at the location given by the list of ```` arguments to ````. The contents of ```` should be valid JSON. -.. _EQUAL: +.. _JSON_EQUAL: .. code-block:: cmake string(JSON [ERROR_VARIABLE ] -- cgit v1.2.1