Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1f98d4

Browse files
Fix numbered lists in stdtypes.rst. (GH-10989)
(cherry picked from commit de9e9b4) Co-authored-by: Andre Delfino <[email protected]>
1 parent f04cc5f commit b1f98d4

1 file changed

Lines changed: 10 additions & 14 deletions

File tree

Doc/library/stdtypes.rst

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2113,28 +2113,26 @@ object. [5]_ Otherwise, *values* must be a tuple with exactly the number of
21132113
items specified by the format string, or a single mapping object (for example, a
21142114
dictionary).
21152115

2116+
.. index::
2117+
single: () (parentheses); in printf-style formatting
2118+
single: * (asterisk); in printf-style formatting
2119+
single: . (dot); in printf-style formatting
2120+
21162121
A conversion specifier contains two or more characters and has the following
21172122
components, which must occur in this order:
21182123

21192124
#. The ``'%'`` character, which marks the start of the specifier.
21202125

2121-
.. index::
2122-
single: () (parentheses); in printf-style formatting
2123-
21242126
#. Mapping key (optional), consisting of a parenthesised sequence of characters
21252127
(for example, ``(somename)``).
21262128

21272129
#. Conversion flags (optional), which affect the result of some conversion
21282130
types.
21292131

2130-
.. index:: single: * (asterisk); in printf-style formatting
2131-
21322132
#. Minimum field width (optional). If specified as an ``'*'`` (asterisk), the
21332133
actual width is read from the next element of the tuple in *values*, and the
21342134
object to convert comes after the minimum field width and optional precision.
21352135

2136-
.. index:: single: . (dot); in printf-style formatting
2137-
21382136
#. Precision (optional), given as a ``'.'`` (dot) followed by the precision. If
21392137
specified as ``'*'`` (an asterisk), the actual precision is read from the next
21402138
element of the tuple in *values*, and the value to convert comes after the
@@ -3229,28 +3227,26 @@ object. [5]_ Otherwise, *values* must be a tuple with exactly the number of
32293227
items specified by the format bytes object, or a single mapping object (for
32303228
example, a dictionary).
32313229

3230+
.. index::
3231+
single: () (parentheses); in printf-style formatting
3232+
single: * (asterisk); in printf-style formatting
3233+
single: . (dot); in printf-style formatting
3234+
32323235
A conversion specifier contains two or more characters and has the following
32333236
components, which must occur in this order:
32343237

32353238
#. The ``'%'`` character, which marks the start of the specifier.
32363239

3237-
.. index::
3238-
single: () (parentheses); in printf-style formatting
3239-
32403240
#. Mapping key (optional), consisting of a parenthesised sequence of characters
32413241
(for example, ``(somename)``).
32423242

32433243
#. Conversion flags (optional), which affect the result of some conversion
32443244
types.
32453245

3246-
.. index:: single: * (asterisk); in printf-style formatting
3247-
32483246
#. Minimum field width (optional). If specified as an ``'*'`` (asterisk), the
32493247
actual width is read from the next element of the tuple in *values*, and the
32503248
object to convert comes after the minimum field width and optional precision.
32513249

3252-
.. index:: single: . (dot); in printf-style formatting
3253-
32543250
#. Precision (optional), given as a ``'.'`` (dot) followed by the precision. If
32553251
specified as ``'*'`` (an asterisk), the actual precision is read from the next
32563252
element of the tuple in *values*, and the value to convert comes after the

0 commit comments

Comments
 (0)