@@ -491,9 +491,9 @@ Range Format Specifications
491
491
Format specifications for range types have the following syntax:
492
492
493
493
.. productionlist :: sf
494
- range_format_spec: [":" [` n ` ][`range_type `][`range_underlying_spec `]]
494
+ range_format_spec: [":" ["n" ][`range_type `][`range_underlying_spec `]]
495
495
496
- The `n ` option formats the range without the opening and closing brackets.
496
+ The `` 'n' ` ` option formats the range without the opening and closing brackets.
497
497
498
498
The available presentation types for `range_type ` are:
499
499
@@ -505,18 +505,18 @@ The available presentation types for `range_type` are:
505
505
| ``'?s'``| Debug format. The range is formatted as an escaped |
506
506
| | string. |
507
507
+---------+----------------------------------------------------------+
508
- | none | Default format. The range is formatted with a separator |
508
+ | none | Default format. The range is formatted with a separator. |
509
509
| | |
510
510
+---------+----------------------------------------------------------+
511
511
512
- If `range_type ` is `s ` or `?s `, the underlying type of the range must be a character type. The
513
- `n ` option and `range_underlying_spec ` are mutually exclusive with `s ` and `?s `.
512
+ If `range_type ` is `` 's' `` or `` '?s' ` `, the underlying type of the range must be a character type. The
513
+ `` 'n' `` option and `range_underlying_spec ` are mutually exclusive with `` 's' `` and `` '?s' ` `.
514
514
515
- The `underlying_spec ` is parsed based on the formatter of the range's
515
+ The `range_underlying_spec ` is parsed based on the formatter of the range's
516
516
reference type.
517
517
518
518
By default, a range of characters or strings is printed escaped and quoted. But
519
- if any `underlying_spec ` is provided (even if it is empty), then the characters
519
+ if any `range_underlying_spec ` is provided (even if it is empty), then the characters
520
520
or strings are printed according to the provided specification.
521
521
522
522
Examples::
0 commit comments