Skip to content

Commit

Permalink
Fix built-in documentation formatting.
Browse files Browse the repository at this point in the history
Fixes AdaCore#8.
  • Loading branch information
TurboGit committed Jan 5, 2023
1 parent f147738 commit 44c5276
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions doc/gprbuild_ug/project_file_reference.rst
Original file line number Diff line number Diff line change
Expand Up @@ -736,18 +736,21 @@ pattern (regular expression). Elements in the list matching the
pattern will be removed from the list.

::

List := ("value1", "or", "another", "one");

Example removing all values containing the letter 'o':

::

Filter_Out (List, ".*o.*")

=> ("value1")

Example removing all values:

::

Filter_Out (List, ".*")

=> ()
Expand All @@ -769,6 +772,7 @@ the list. If the number is negative it is an index starting from the
end of the list. That is, "-1" is the last list item.

::

List := ("one", "two", "three", "last");

Item_At (List, "2")
Expand Down Expand Up @@ -803,6 +807,7 @@ Example:
Example with a list:

::

List := ("One", "Two");

Lower (List)
Expand Down Expand Up @@ -835,6 +840,7 @@ Example:
Example with a list and a replacement pattern:

::

List := ("value1", "or", "another", "one");

Match (List, "(.*r)", "r:\1")
Expand Down Expand Up @@ -955,6 +961,7 @@ Example:
Example with a list:

::

List := ("One", "Two");

Upper (List)
Expand Down

0 comments on commit 44c5276

Please sign in to comment.