[Python-checkins] [3.11] gh-105196: Fix indentations of section headings in C API docs (#105672) (#105786)

CAM-Gerlach webhook-mailer at python.org
Wed Jun 14 23:34:40 EDT 2023


https://github.com/python/cpython/commit/e422f35267e17cd9c10613ce9e10e54f51ed925b
commit: e422f35267e17cd9c10613ce9e10e54f51ed925b
branch: 3.11
author: Irit Katriel <1055913+iritkatriel at users.noreply.github.com>
committer: CAM-Gerlach <CAM.Gerlach at Gerlach.CAM>
date: 2023-06-14T22:34:37-05:00
summary:

[3.11] gh-105196: Fix indentations of section headings in C API docs (#105672) (#105786)

gh-105196: Fix indentations of section headings in C API docs (#105672)

Co-authored-by: TATHAGATA ROY <royzen9495 at gmail.com>

files:
M Doc/c-api/float.rst
M Doc/c-api/slice.rst

diff --git a/Doc/c-api/float.rst b/Doc/c-api/float.rst
index 05b2d100d575c..0118bea4e720f 100644
--- a/Doc/c-api/float.rst
+++ b/Doc/c-api/float.rst
@@ -3,7 +3,7 @@
 .. _floatobjects:
 
 Floating Point Objects
-----------------------
+======================
 
 .. index:: pair: object; floating point
 
@@ -79,7 +79,7 @@ Floating Point Objects
 
 
 Pack and Unpack functions
-=========================
+-------------------------
 
 The pack and unpack functions provide an efficient platform-independent way to
 store floating-point values as byte strings. The Pack routines produce a bytes
@@ -104,7 +104,7 @@ happens in such cases is partly accidental (alas).
 .. versionadded:: 3.11
 
 Pack functions
---------------
+^^^^^^^^^^^^^^
 
 The pack routines write 2, 4 or 8 bytes, starting at *p*. *le* is an
 :c:expr:`int` argument, non-zero if you want the bytes string in little-endian
@@ -135,7 +135,7 @@ There are two problems on non-IEEE platforms:
 
 
 Unpack functions
-----------------
+^^^^^^^^^^^^^^^^
 
 The unpack routines read 2, 4 or 8 bytes, starting at *p*.  *le* is an
 :c:expr:`int` argument, non-zero if the bytes string is in little-endian format
diff --git a/Doc/c-api/slice.rst b/Doc/c-api/slice.rst
index 8271d9acfb645..33169ccce8904 100644
--- a/Doc/c-api/slice.rst
+++ b/Doc/c-api/slice.rst
@@ -113,7 +113,7 @@ Slice Objects
 
 
 Ellipsis Object
----------------
+^^^^^^^^^^^^^^^
 
 
 .. c:var:: PyObject *Py_Ellipsis



More information about the Python-checkins mailing list