From 5348ee28733acd0a26b6649f384e1d27b88f0e15 Mon Sep 17 00:00:00 2001 From: Oscar Gustafsson Date: Tue, 10 Jan 2023 11:35:41 +0100 Subject: [PATCH] Backport PR #24927: DOC: Remove space after directive name, before double-colon --- 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 b843698a14a4..a19e8f08b9d7 100644 --- a/lib/matplotlib/image.py +++ b/lib/matplotlib/image.py @@ -1552,7 +1552,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 f25af11da6f5..2708114abe80 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"