Skip to content

Commit 91883fd

Browse files
Docs: Fix indentation that produced unintended definition lists and block quotes (GH-160740)
* Fix documentation markup for translation * Fix more documentation markup for translation (cherry picked from commit 085b291) Co-authored-by: Inada Naoki <songofacandy@gmail.com>
1 parent 3acef6a commit 91883fd

11 files changed

Lines changed: 30 additions & 30 deletions

File tree

‎Doc/c-api/call.rst‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@ This is a pointer to a function with the following signature:
8181
8282
- *callable* is the object being called.
8383
- *args* is a C array consisting of the positional arguments followed by the
84-
values of the keyword arguments.
85-
This can be *NULL* if there are no arguments.
84+
values of the keyword arguments.
85+
This can be *NULL* if there are no arguments.
8686
- *nargsf* is the number of positional arguments plus possibly the
87-
:c:macro:`PY_VECTORCALL_ARGUMENTS_OFFSET` flag.
88-
To get the actual number of positional arguments from *nargsf*,
89-
use :c:func:`PyVectorcall_NARGS`.
87+
:c:macro:`PY_VECTORCALL_ARGUMENTS_OFFSET` flag.
88+
To get the actual number of positional arguments from *nargsf*,
89+
use :c:func:`PyVectorcall_NARGS`.
9090
- *kwnames* is a tuple containing the names of the keyword arguments;
91-
in other words, the keys of the kwargs dict.
92-
These names must be strings (instances of ``str`` or a subclass)
93-
and they must be unique.
94-
If there are no keyword arguments, then *kwnames* can instead be *NULL*.
91+
in other words, the keys of the kwargs dict.
92+
These names must be strings (instances of ``str`` or a subclass)
93+
and they must be unique.
94+
If there are no keyword arguments, then *kwnames* can instead be *NULL*.
9595

9696
.. c:macro:: PY_VECTORCALL_ARGUMENTS_OFFSET
9797

‎Doc/howto/functional.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -631,7 +631,7 @@ Two of Python's built-in functions, :func:`map` and :func:`filter` duplicate the
631631
features of generator expressions:
632632

633633
:func:`map(f, iterA, iterB, ...) <map>` returns an iterator over the sequence
634-
``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], iterB[2]), ...``.
634+
``f(iterA[0], iterB[0]), f(iterA[1], iterB[1]), f(iterA[2], iterB[2]), ...``.
635635

636636
>>> def upper(s):
637637
... return s.upper()

‎Doc/library/asyncio-eventloop.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1537,7 +1537,7 @@ Allows customizing how exceptions are handled in the event loop.
15371537
* 'source_traceback' (optional): Traceback of the source;
15381538
* 'handle_traceback' (optional): Traceback of the handle;
15391539
* 'asyncgen' (optional): Asynchronous generator that caused
1540-
the exception.
1540+
the exception.
15411541

15421542
.. note::
15431543

‎Doc/library/fractions.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ a single number, or from a string.
109109
.. versionchanged:: 3.12
110110
:class:`Fraction` instances now support float-style formatting, with
111111
presentation types ``"e"``, ``"E"``, ``"f"``, ``"F"``, ``"g"``, ``"G"``
112-
and ``"%""``.
112+
and ``"%"``.
113113

114114
.. versionchanged:: 3.13
115115
Formatting of :class:`Fraction` instances without a presentation type

‎Doc/library/time.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ Functions
472472
| | | |
473473
+-----------+------------------------------------------------+-------+
474474
| ``%f`` | Microseconds as a decimal number | \(1) |
475-
| | [000000,999999]. | |
475+
| | [000000,999999]. | |
476476
| | | |
477477
+-----------+------------------------------------------------+-------+
478478
| ``%H`` | Hour (24-hour clock) as a decimal number | |

‎Doc/library/tkinter.font.rst‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ The different font weights and slants are:
9494
Options include:
9595

9696
*ascent* - distance between baseline and highest point that a
97-
character of the font can occupy
97+
character of the font can occupy
9898

9999
*descent* - distance between baseline and lowest point that a
100-
character of the font can occupy
100+
character of the font can occupy
101101

102102
*linespace* - minimum vertical separation necessary between any two
103-
characters of the font that ensures no vertical overlap between lines.
103+
characters of the font that ensures no vertical overlap between lines.
104104

105105
*fixed* - 1 if font is fixed-width else 0
106106

‎Doc/library/unittest.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -999,7 +999,7 @@ Test cases
999999
| <TestCase.assertLogs>` | with minimum *level* | |
10001000
+---------------------------------------------------------+--------------------------------------+------------+
10011001
| :meth:`assertNoLogs(logger, level) | The ``with`` block does not log on | 3.10 |
1002-
| <TestCase.assertNoLogs>` | *logger* with minimum *level* | |
1002+
| <TestCase.assertNoLogs>` | *logger* with minimum *level* | |
10031003
+---------------------------------------------------------+--------------------------------------+------------+
10041004

10051005
.. method:: assertRaises(exception, callable, *args, **kwds)

‎Doc/library/xml.etree.elementtree.rst‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -563,13 +563,13 @@ Functions
563563

564564
- *with_comments*: set to true to include comments (default: false)
565565
- *strip_text*: set to true to strip whitespace before and after text content
566-
(default: false)
566+
(default: false)
567567
- *rewrite_prefixes*: set to true to replace namespace prefixes by "n{number}"
568-
(default: false)
568+
(default: false)
569569
- *qname_aware_tags*: a set of qname aware tag names in which prefixes
570-
should be replaced in text content (default: empty)
570+
should be replaced in text content (default: empty)
571571
- *qname_aware_attrs*: a set of qname aware attribute names in which prefixes
572-
should be replaced in text content (default: empty)
572+
should be replaced in text content (default: empty)
573573
- *exclude_attrs*: a set of attribute names that should not be serialised
574574
- *exclude_tags*: a set of tag names that should not be serialised
575575

‎Doc/whatsnew/2.2.rst‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1082,7 +1082,7 @@ code, none of the changes described here will affect you very much.
10821082
* Rename :c:macro:`!Py_TPFLAGS_GC` to :c:macro:`Py_TPFLAGS_HAVE_GC`.
10831083

10841084
* Use :c:func:`PyObject_GC_New` or :c:func:`PyObject_GC_NewVar` to allocate
1085-
objects, and :c:func:`PyObject_GC_Del` to deallocate them.
1085+
objects, and :c:func:`PyObject_GC_Del` to deallocate them.
10861086

10871087
* Rename :c:func:`!PyObject_GC_Init` to :c:func:`PyObject_GC_Track` and
10881088
:c:func:`!PyObject_GC_Fini` to :c:func:`PyObject_GC_UnTrack`.

‎Doc/whatsnew/2.4.rst‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,8 +1015,8 @@ complete list of changes, or look through the CVS logs for all the details.
10151015
* Chinese (ROC): big5, cp950
10161016

10171017
* Japanese: cp932, euc-jis-2004, euc-jp, euc-jisx0213, iso-2022-jp,
1018-
iso-2022-jp-1, iso-2022-jp-2, iso-2022-jp-3, iso-2022-jp-ext, iso-2022-jp-2004,
1019-
shift-jis, shift-jisx0213, shift-jis-2004
1018+
iso-2022-jp-1, iso-2022-jp-2, iso-2022-jp-3, iso-2022-jp-ext, iso-2022-jp-2004,
1019+
shift-jis, shift-jisx0213, shift-jis-2004
10201020

10211021
* Korean: cp949, euc-kr, johab, iso-2022-kr
10221022

0 commit comments

Comments
 (0)