From 906292475f5cf44fc3ebe028b425260bcc1e6c8d Mon Sep 17 00:00:00 2001 From: Matthias Bussonnier Date: Tue, 10 Jan 2023 10:17:06 +0100 Subject: [PATCH] DOC: Remove space after directive name, before double-colon.. While Sphinx/Docutils allow space after the directive name, it is not in the spec and not supported by all Rst parsers. Those are also the only 3 place in the codebase I could find that use space after a directive name. --- lib/matplotlib/image.py | 2 +- src/ft2font_wrapper.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/matplotlib/image.py b/lib/matplotlib/image.py index 8b113cacdd0c..ba495f8e3f1a 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -1572,7 +1572,7 @@ def imsave(fname, arr, vmin=None, vmax=None, cmap=None, format=None, RGB(A) images are passed through. Single channel images will be colormapped according to *cmap* and *norm*. - .. note :: + .. note:: If you want to save a single channel image as gray scale please use an image I/O library (such as pillow, tifffile, or imageio) directly. diff --git a/src/ft2font_wrapper.cpp b/src/ft2font_wrapper.cpp index 8685e6484db0..8b415bf3efdb 100644 --- a/src/ft2font_wrapper.cpp +++ b/src/ft2font_wrapper.cpp @@ -325,11 +325,11 @@ const char *PyFT2Font_init__doc__ = " Must be positive. Used to scale the hinting in the x-direction\n" "_fallback_list : list of FT2Font, optional\n" " A list of FT2Font objects used to find missing glyphs.\n\n" - " .. warning ::\n" + " .. warning::\n" " This API is both private and provisional: do not use it directly\n\n" "_kerning_factor : int, optional\n" " Used to adjust the degree of kerning.\n\n" - " .. warning ::\n" + " .. warning::\n" " This API is private: do not use it directly\n\n" "Attributes\n" "----------\n" pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy