Skip to content

Commit 49b8c7e

Browse files
radarherehugovk
authored andcommitted
Use line blocks instead of blank lines
1 parent 0fbd201 commit 49b8c7e

File tree

4 files changed

+35
-36
lines changed

4 files changed

+35
-36
lines changed

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@
312312

313313
def setup(app):
314314
app.add_js_file("js/script.js")
315+
app.add_css_file("css/styles.css")
315316
app.add_css_file("css/dark.css")
316317
app.add_css_file("css/light.css")
317318

docs/handbook/writing-your-own-file-decoder.rst

Lines changed: 28 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -191,39 +191,34 @@ match PIL’s internal pixel layout. PIL supports a large set of raw modes; for
191191
complete list, see the table in the :file:`Unpack.c` module. The following
192192
table describes some commonly used **raw modes**:
193193

194-
+-----------+-----------------------------------------------------------------+
195-
| mode | description |
196-
+===========+=================================================================+
197-
| ``1`` | 1-bit bilevel, stored with the leftmost pixel in the most |
198-
| | |
199-
| | significant bit. 0 means black, 1 means white. |
200-
+-----------+-----------------------------------------------------------------+
201-
| ``1;I`` | 1-bit inverted bilevel, stored with the leftmost pixel in the |
202-
| | |
203-
| | most significant bit. 0 means white, 1 means black. |
204-
+-----------+-----------------------------------------------------------------+
205-
| ``1;R`` | 1-bit reversed bilevel, stored with the leftmost pixel in the |
206-
| | |
207-
| | least significant bit. 0 means black, 1 means white. |
208-
+-----------+-----------------------------------------------------------------+
209-
| ``L`` | 8-bit greyscale. 0 means black, 255 means white. |
210-
+-----------+-----------------------------------------------------------------+
211-
| ``L;I`` | 8-bit inverted greyscale. 0 means white, 255 means black. |
212-
+-----------+-----------------------------------------------------------------+
213-
| ``P`` | 8-bit palette-mapped image. |
214-
+-----------+-----------------------------------------------------------------+
215-
| ``RGB`` | 24-bit true colour, stored as (red, green, blue). |
216-
+-----------+-----------------------------------------------------------------+
217-
| ``BGR`` | 24-bit true colour, stored as (blue, green, red). |
218-
+-----------+-----------------------------------------------------------------+
219-
| ``RGBX`` | 24-bit true colour, stored as (red, green, blue, pad). The pad |
220-
| | |
221-
| | pixels may vary. |
222-
+-----------+-----------------------------------------------------------------+
223-
| ``RGB;L`` | 24-bit true colour, line interleaved (first all red pixels, then|
224-
| | |
225-
| | all green pixels, finally all blue pixels). |
226-
+-----------+-----------------------------------------------------------------+
194+
+-----------+-------------------------------------------------------------------+
195+
| mode | description |
196+
+===========+===================================================================+
197+
| ``1`` | | 1-bit bilevel, stored with the leftmost pixel in the most |
198+
| | | significant bit. 0 means black, 1 means white. |
199+
+-----------+-------------------------------------------------------------------+
200+
| ``1;I`` | | 1-bit inverted bilevel, stored with the leftmost pixel in the |
201+
| | | most significant bit. 0 means white, 1 means black. |
202+
+-----------+-------------------------------------------------------------------+
203+
| ``1;R`` | | 1-bit reversed bilevel, stored with the leftmost pixel in the |
204+
| | | least significant bit. 0 means black, 1 means white. |
205+
+-----------+-------------------------------------------------------------------+
206+
| ``L`` | 8-bit greyscale. 0 means black, 255 means white. |
207+
+-----------+-------------------------------------------------------------------+
208+
| ``L;I`` | 8-bit inverted greyscale. 0 means white, 255 means black. |
209+
+-----------+-------------------------------------------------------------------+
210+
| ``P`` | 8-bit palette-mapped image. |
211+
+-----------+-------------------------------------------------------------------+
212+
| ``RGB`` | 24-bit true colour, stored as (red, green, blue). |
213+
+-----------+-------------------------------------------------------------------+
214+
| ``BGR`` | 24-bit true colour, stored as (blue, green, red). |
215+
+-----------+-------------------------------------------------------------------+
216+
| ``RGBX`` | | 24-bit true colour, stored as (red, green, blue, pad). The pad |
217+
| | | pixels may vary. |
218+
+-----------+-------------------------------------------------------------------+
219+
| ``RGB;L`` | | 24-bit true colour, line interleaved (first all red pixels, then|
220+
| | | all green pixels, finally all blue pixels). |
221+
+-----------+-------------------------------------------------------------------+
227222

228223
Note that for the most common cases, the raw mode is simply the same as the mode.
229224

docs/installation.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -527,9 +527,8 @@ These platforms have been reported to work at the versions mentioned.
527527
+----------------------------------+------------------------------+----------------+------------+
528528
| Fedora 23 | 2.7, 3.4 | 3.1.0 | x86-64 |
529529
+----------------------------------+------------------------------+----------------+------------+
530-
| Ubuntu Linux 12.04 LTS (Precise) | 2.6, 3.2, 3.3, 3.4, 3.5, | 3.4.1 | x86,x86-64 |
531-
| | | | |
532-
| | PyPy5.3.1, PyPy3 v2.4.0 | | |
530+
| Ubuntu Linux 12.04 LTS (Precise) | | 2.6, 3.2, 3.3, 3.4, 3.5, | 3.4.1 | x86,x86-64 |
531+
| | | PyPy5.3.1, PyPy3 v2.4.0 | | |
533532
| +------------------------------+----------------+------------+
534533
| | 2.7 | 4.3.0 | x86-64 |
535534
| +------------------------------+----------------+------------+

docs/resources/css/styles.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.rst-content td .line-block {
2+
font-size: 1rem;
3+
margin-bottom: 0;
4+
}

0 commit comments

Comments
 (0)