From 014e2dde11dd12adf3988c39b15934e260015760 Mon Sep 17 00:00:00 2001 From: Thomas Danner Date: Mon, 12 Jul 2021 16:12:09 -0700 Subject: [PATCH 1/2] bpo-34451: Document prompt and output toggle feature in html tutorial --- Doc/tutorial/introduction.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 4613cf76c53099..896a05c5f1ffea 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -11,6 +11,13 @@ with a prompt are output from the interpreter. Note that a secondary prompt on a line by itself in an example means you must type a blank line; this is used to end a multi-line command. +.. only:: html + + You can toggle the display of prompts and output by clicking the ``>>>`` + link in the upper-right corner of an example box. If you hide the prompts + and output for an example, then you can easily copy and paste the input + lines into your interpreter. + .. index:: single: # (hash); comment Many of the examples in this manual, even those entered at the interactive From ee404c1a5c86e9b2daef8708e6c2d007df5d7724 Mon Sep 17 00:00:00 2001 From: Thomas Danner Date: Mon, 27 Sep 2021 14:49:26 -0700 Subject: [PATCH 2/2] Remove the word link from output toggle feature description --- Doc/tutorial/introduction.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Doc/tutorial/introduction.rst b/Doc/tutorial/introduction.rst index 896a05c5f1ffea..f40d3c123e4005 100644 --- a/Doc/tutorial/introduction.rst +++ b/Doc/tutorial/introduction.rst @@ -13,8 +13,8 @@ end a multi-line command. .. only:: html - You can toggle the display of prompts and output by clicking the ``>>>`` - link in the upper-right corner of an example box. If you hide the prompts + You can toggle the display of prompts and output by clicking on ``>>>`` + in the upper-right corner of an example box. If you hide the prompts and output for an example, then you can easily copy and paste the input lines into your interpreter.