Skip to content

Commit 44ea77b

Browse files
committed
Closes python#4159: add LaTeX tabular column specifications to tables that otherwise are cut off or have overlapping text.
1 parent 6ba6b13 commit 44ea77b

32 files changed

+129
-30
lines changed

Doc/c-api/buffer.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,7 @@ The flags that control the logical structure of the memory are listed
263263
in decreasing order of complexity. Note that each flag contains all bits
264264
of the flags below it.
265265

266+
.. tabularcolumns:: |p{0.35\linewidth}|l|l|l|
266267

267268
+-----------------------------+-------+---------+------------+
268269
| Request | shape | strides | suboffsets |
@@ -283,6 +284,8 @@ contiguity requests
283284
C or Fortran contiguity can be explicitly requested, with and without stride
284285
information. Without stride information, the buffer must be C-contiguous.
285286

287+
.. tabularcolumns:: |p{0.35\linewidth}|l|l|l|l|
288+
286289
+-----------------------------------+-------+---------+------------+--------+
287290
| Request | shape | strides | suboffsets | contig |
288291
+===================================+=======+=========+============+========+
@@ -306,7 +309,7 @@ used combinations as single flags.
306309
In the following table *U* stands for undefined contiguity. The consumer would
307310
have to call :c:func:`PyBuffer_IsContiguous` to determine contiguity.
308311

309-
312+
.. tabularcolumns:: |p{0.35\linewidth}|l|l|l|l|l|l|
310313

311314
+-------------------------------+-------+---------+------------+--------+----------+--------+
312315
| Request | shape | strides | suboffsets | contig | readonly | format |

Doc/c-api/bytes.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ called with a non-bytes parameter.
6262
.. % because not all compilers support the %z width modifier -- we fake it
6363
.. % when necessary via interpolating PY_FORMAT_SIZE_T.
6464
65+
.. tabularcolumns:: |l|l|L|
66+
6567
+-------------------+---------------+--------------------------------+
6668
| Format Characters | Type | Comment |
6769
+===================+===============+================================+

Doc/c-api/unicode.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ APIs:
439439
.. % Similar comments apply to the %ll width modifier and
440440
.. % PY_FORMAT_LONG_LONG.
441441
442+
.. tabularcolumns:: |l|l|L|
443+
442444
+-------------------+---------------------+--------------------------------+
443445
| Format Characters | Type | Comment |
444446
+===================+=====================+================================+

Doc/distutils/apiref.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
2626
The setup function takes a large number of arguments. These are laid out in the
2727
following table.
2828

29+
.. tabularcolumns:: |l|L|L|
30+
2931
+--------------------+--------------------------------+-------------------------------------------------------------+
3032
| argument name | value | type |
3133
+====================+================================+=============================================================+
@@ -125,6 +127,8 @@ setup script). Indirectly provides the :class:`distutils.dist.Distribution` and
125127

126128
*stop_after* tells :func:`setup` when to stop processing; possible values:
127129

130+
.. tabularcolumns:: |l|L|
131+
128132
+---------------+---------------------------------------------+
129133
| value | description |
130134
+===============+=============================================+
@@ -165,6 +169,8 @@ the full reference.
165169
The Extension class describes a single C or C++extension module in a setup
166170
script. It accepts the following keyword arguments in its constructor:
167171

172+
.. tabularcolumns:: |l|L|l|
173+
168174
+------------------------+--------------------------------+---------------------------+
169175
| argument name | value | type |
170176
+========================+================================+===========================+
@@ -1562,6 +1568,8 @@ lines, and joining lines with backslashes.
15621568

15631569
The options are all boolean, and affect the values returned by :meth:`readline`
15641570

1571+
.. tabularcolumns:: |l|L|l|
1572+
15651573
+------------------+--------------------------------+---------+
15661574
| option name | description | default |
15671575
+==================+================================+=========+

Doc/faq/extending.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
Extending/Embedding FAQ
33
=======================
44

5-
.. contents::
5+
.. only:: html
6+
7+
.. contents::
68

79
.. highlight:: c
810

Doc/faq/general.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
General Python FAQ
55
==================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
10+
811

912
General Information
1013
===================

Doc/faq/gui.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Graphic User Interface FAQ
55
==========================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
.. XXX need review for Python 3.
1012

Doc/faq/library.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Library and Extension FAQ
55
=========================
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
General Library Questions
1012
=========================

Doc/faq/programming.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
Programming FAQ
55
===============
66

7-
.. contents::
7+
.. only:: html
8+
9+
.. contents::
810

911
General Questions
1012
=================

Doc/faq/windows.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
Python on Windows FAQ
77
=====================
88

9-
.. contents::
9+
.. only:: html
10+
11+
.. contents::
1012

1113
.. XXX need review for Python 3.
1214
XXX need review for Windows Vista/Seven?

0 commit comments

Comments
 (0)