From 74915489e375114af60fafef6ecc700b568f0ff6 Mon Sep 17 00:00:00 2001 From: Michael Jarvis Date: Mon, 30 Nov 2020 15:44:54 -0600 Subject: [PATCH] Fix sphinx-docs warning When building from source, there is a warning: ../doc_src/cmds/string-match.rst:13: WARNING: Inline emphasis start-string without end-string. One fix appears to be putting a space after the epmhasized 'n' character, e.g., `*n* th` instead of `*n*th`. --- doc_src/cmds/string-match.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc_src/cmds/string-match.rst b/doc_src/cmds/string-match.rst index 754f84010..761f01b21 100644 --- a/doc_src/cmds/string-match.rst +++ b/doc_src/cmds/string-match.rst @@ -27,7 +27,7 @@ If ``--index`` or ``-n`` is given, each match is reported as a 1-based start pos If ``--regex`` or ``-r`` is given, PATTERN is interpreted as a Perl-compatible regular expression, which does not have to match the entire STRING. For a regular expression containing capturing groups, multiple items will be reported for each match, one for the entire match and one for each capturing group. With this, only the matching part of the STRING will be reported, unless ``--entire`` is given. -When matching via regular expressions, it is possible to directly import matches as fish variables by means of named capture groups using the PCRE2 syntax. This behavior is automatic and occurs in addition to any other match reporting. The default behavior with ``--regex`` results in the initialization of fish variables in the default scope containing the matched text corresponding to each named capture group. A named capture group matching a zero-length string will be initialized as a fish variable containing a likewise empty string (i.e. the equivalent of ``""``), but a named capture group that did not match will result in an empty (null) fish variable. When ``--regex`` is used in conjunction with ``--all``, this behavior changes slightly: for each of the *n* matching sequences, the *n*th index of each named variable will contain the contents of the corresponding named capture group for the *n*th match, but will contain an empty string if the group was empty or if the group did not match. +When matching via regular expressions, it is possible to directly import matches as fish variables by means of named capture groups using the PCRE2 syntax. This behavior is automatic and occurs in addition to any other match reporting. The default behavior with ``--regex`` results in the initialization of fish variables in the default scope containing the matched text corresponding to each named capture group. A named capture group matching a zero-length string will be initialized as a fish variable containing a likewise empty string (i.e. the equivalent of ``""``), but a named capture group that did not match will result in an empty (null) fish variable. When ``--regex`` is used in conjunction with ``--all``, this behavior changes slightly: for each of the *n* matching sequences, the *n* th index of each named variable will contain the contents of the corresponding named capture group for the *n* th match, but will contain an empty string if the group was empty or if the group did not match. If ``--invert`` or ``-v`` is used the selected lines will be only those which do not match the given glob pattern or regular expression.