Skip to content

Commit 8af29e0

Browse files
committed
change formatting
1 parent fe0a6b7 commit 8af29e0

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Diff for: doc/syntax.rst

+7-7
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ Range Format Specifications
491491
Format specifications for range types have the following syntax:
492492

493493
.. productionlist:: sf
494-
range_format_spec: [":" [`n`][`range_type`][`range_underlying_spec`]]
494+
range_format_spec: [":" ["n"][`range_type`][`range_underlying_spec`]]
495495

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.
497497

498498
The available presentation types for `range_type` are:
499499

@@ -505,18 +505,18 @@ The available presentation types for `range_type` are:
505505
| ``'?s'``| Debug format. The range is formatted as an escaped |
506506
| | string. |
507507
+---------+----------------------------------------------------------+
508-
| none | Default format. The range is formatted with a separator |
508+
| none | Default format. The range is formatted with a separator. |
509509
| | |
510510
+---------+----------------------------------------------------------+
511511

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'``.
514514

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
516516
reference type.
517517

518518
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
520520
or strings are printed according to the provided specification.
521521

522522
Examples::

0 commit comments

Comments
 (0)