From 9cc6befe1b7de68910787c5732e436393de2bdfc Mon Sep 17 00:00:00 2001 From: Craig Scott Date: Sun, 30 Jun 2019 19:43:11 +1000 Subject: Help: Improve formatting of list(TRANSFORM) sub-options --- Help/command/list.rst | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/Help/command/list.rst b/Help/command/list.rst index 866a597..39e7e2a 100644 --- a/Help/command/list.rst +++ b/Help/command/list.rst @@ -223,41 +223,41 @@ The actions have exactly the same semantics as sub-commands of the ``APPEND``, ``PREPEND``: Append, prepend specified value to each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM ...) + list(TRANSFORM ...) ``TOUPPER``, ``TOLOWER``: Convert each element of the list to upper, lower characters. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM ...) + list(TRANSFORM ...) ``STRIP``: Remove leading and trailing spaces from each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM STRIP ...) + list(TRANSFORM STRIP ...) ``GENEX_STRIP``: Strip any :manual:`generator expressions ` from each element of the list. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM GENEX_STRIP ...) + list(TRANSFORM GENEX_STRIP ...) ``REPLACE``: Match the regular expression as many times as possible and substitute the replacement expression for the match for each element of the list (Same semantic as ``REGEX REPLACE`` from :command:`string` command). -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM REPLACE - ...) + list(TRANSFORM REPLACE + ...) ```` determines which elements of the list will be transformed. Only one type of selector can be specified at a time. When given, @@ -265,23 +265,23 @@ Only one type of selector can be specified at a time. When given, ``AT``: Specify a list of indexes. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM AT [ ...] ...) + list(TRANSFORM AT [ ...] ...) ``FOR``: Specify a range with, optionally, an increment used to iterate over the range. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM FOR [] ...) + list(TRANSFORM FOR [] ...) ``REGEX``: Specify a regular expression. Only elements matching the regular expression will be transformed. -.. code-block:: cmake + .. code-block:: cmake - list(TRANSFORM REGEX ...) + list(TRANSFORM REGEX ...) Ordering -- cgit v0.12