Use line blocks instead of blank lines

This commit is contained in:
Andrew Murray 2021-07-02 18:59:12 +10:00 committed by Hugo van Kemenade
parent 0fbd20118d
commit 49b8c7e548
4 changed files with 35 additions and 36 deletions

View File

@ -312,6 +312,7 @@ texinfo_documents = [
def setup(app): def setup(app):
app.add_js_file("js/script.js") app.add_js_file("js/script.js")
app.add_css_file("css/styles.css")
app.add_css_file("css/dark.css") app.add_css_file("css/dark.css")
app.add_css_file("css/light.css") app.add_css_file("css/light.css")

View File

@ -191,39 +191,34 @@ match PILs internal pixel layout. PIL supports a large set of raw modes; for
complete list, see the table in the :file:`Unpack.c` module. The following complete list, see the table in the :file:`Unpack.c` module. The following
table describes some commonly used **raw modes**: table describes some commonly used **raw modes**:
+-----------+-----------------------------------------------------------------+ +-----------+-------------------------------------------------------------------+
| mode | description | | mode | description |
+===========+=================================================================+ +===========+===================================================================+
| ``1`` | 1-bit bilevel, stored with the leftmost pixel in the most | | ``1`` | | 1-bit bilevel, stored with the leftmost pixel in the most |
| | | | | | significant bit. 0 means black, 1 means white. |
| | significant bit. 0 means black, 1 means white. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``1;I`` | | 1-bit inverted bilevel, stored with the leftmost pixel in the |
| ``1;I`` | 1-bit inverted bilevel, stored with the leftmost pixel in the | | | | most significant bit. 0 means white, 1 means black. |
| | | +-----------+-------------------------------------------------------------------+
| | most significant bit. 0 means white, 1 means black. | | ``1;R`` | | 1-bit reversed bilevel, stored with the leftmost pixel in the |
+-----------+-----------------------------------------------------------------+ | | | least significant bit. 0 means black, 1 means white. |
| ``1;R`` | 1-bit reversed bilevel, stored with the leftmost pixel in the | +-----------+-------------------------------------------------------------------+
| | | | ``L`` | 8-bit greyscale. 0 means black, 255 means white. |
| | least significant bit. 0 means black, 1 means white. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``L;I`` | 8-bit inverted greyscale. 0 means white, 255 means black. |
| ``L`` | 8-bit greyscale. 0 means black, 255 means white. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``P`` | 8-bit palette-mapped image. |
| ``L;I`` | 8-bit inverted greyscale. 0 means white, 255 means black. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``RGB`` | 24-bit true colour, stored as (red, green, blue). |
| ``P`` | 8-bit palette-mapped image. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``BGR`` | 24-bit true colour, stored as (blue, green, red). |
| ``RGB`` | 24-bit true colour, stored as (red, green, blue). | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+ | ``RGBX`` | | 24-bit true colour, stored as (red, green, blue, pad). The pad |
| ``BGR`` | 24-bit true colour, stored as (blue, green, red). | | | | pixels may vary. |
+-----------+-----------------------------------------------------------------+ +-----------+-------------------------------------------------------------------+
| ``RGBX`` | 24-bit true colour, stored as (red, green, blue, pad). The pad | | ``RGB;L`` | | 24-bit true colour, line interleaved (first all red pixels, then|
| | | | | | all green pixels, finally all blue pixels). |
| | pixels may vary. | +-----------+-------------------------------------------------------------------+
+-----------+-----------------------------------------------------------------+
| ``RGB;L`` | 24-bit true colour, line interleaved (first all red pixels, then|
| | |
| | all green pixels, finally all blue pixels). |
+-----------+-----------------------------------------------------------------+
Note that for the most common cases, the raw mode is simply the same as the mode. Note that for the most common cases, the raw mode is simply the same as the mode.

View File

@ -527,9 +527,8 @@ These platforms have been reported to work at the versions mentioned.
+----------------------------------+------------------------------+----------------+------------+ +----------------------------------+------------------------------+----------------+------------+
| Fedora 23 | 2.7, 3.4 | 3.1.0 | x86-64 | | Fedora 23 | 2.7, 3.4 | 3.1.0 | x86-64 |
+----------------------------------+------------------------------+----------------+------------+ +----------------------------------+------------------------------+----------------+------------+
| Ubuntu Linux 12.04 LTS (Precise) | 2.6, 3.2, 3.3, 3.4, 3.5, | 3.4.1 | x86,x86-64 | | Ubuntu Linux 12.04 LTS (Precise) | | 2.6, 3.2, 3.3, 3.4, 3.5, | 3.4.1 | x86,x86-64 |
| | | | | | | | PyPy5.3.1, PyPy3 v2.4.0 | | |
| | PyPy5.3.1, PyPy3 v2.4.0 | | |
| +------------------------------+----------------+------------+ | +------------------------------+----------------+------------+
| | 2.7 | 4.3.0 | x86-64 | | | 2.7 | 4.3.0 | x86-64 |
| +------------------------------+----------------+------------+ | +------------------------------+----------------+------------+

View File

@ -0,0 +1,4 @@
.rst-content td .line-block {
font-size: 1rem;
margin-bottom: 0;
}