summaryrefslogtreecommitdiffstats
path: root/Doc/library/textwrap.rst
diff options
context:
space:
mode:
authorErlend E. Aasland <erlend@python.org>2023-08-20 11:09:33 (GMT)
committerGitHub <noreply@github.com>2023-08-20 11:09:33 (GMT)
commit29fa7afef94d74e18d97485c085d1ccf80c16ca3 (patch)
treebe84184f6761075d72f70dc07f2129a39ffae6c9 /Doc/library/textwrap.rst
parentbeffb30dc7a07044f4198245d049ddda1f4b24db (diff)
downloadcpython-29fa7afef94d74e18d97485c085d1ccf80c16ca3.zip
cpython-29fa7afef94d74e18d97485c085d1ccf80c16ca3.tar.gz
cpython-29fa7afef94d74e18d97485c085d1ccf80c16ca3.tar.bz2
Docs: Fix Sphinx warnings in sys.rst (#108106)
- Mark up named tuple attributes as attributes - Remove links for external functions - io.BufferedIOBase has no 'buffer' attribute; remove the link and mark up using :attr:`!buffer` - (Re)format some tables as bullet lists: - sys._emscripten_info - sys.hash_info - sys.int_info - sys.thread_info - In the paragraphs mentioning 'f_trace_lines' and 'f_trace_opcodes', add links to the frame objects reference. Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to 'Doc/library/textwrap.rst')
-rw-r--r--Doc/library/textwrap.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/textwrap.rst b/Doc/library/textwrap.rst
index a150eef..e2952ce 100644
--- a/Doc/library/textwrap.rst
+++ b/Doc/library/textwrap.rst
@@ -60,7 +60,7 @@ functions should be good enough; otherwise, you should use an instance of
First the whitespace in *text* is collapsed (all whitespace is replaced by
single spaces). If the result fits in the *width*, it is returned.
Otherwise, enough words are dropped from the end so that the remaining words
- plus the :attr:`.placeholder` fit within :attr:`.width`::
+ plus the *placeholder* fit within *width*::
>>> textwrap.shorten("Hello world!", width=12)
'Hello world!'