Skip to content

Commit

Permalink
omitting the "unused" prompt in code example (1210)
Browse files Browse the repository at this point in the history
* omitting the "unused" prompt in code example

* updated text as per review comment
  • Loading branch information
shashankshet committed Nov 3, 2023
1 parent 2e9e657 commit 4961fe7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions documentation/markup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -611,14 +611,13 @@ preceding paragraph and delimited by indentation.

Representing an interactive session requires including the prompts and output
along with the Python code. No special markup is required for interactive
sessions. After the last line of input or output presented, there should not be
an "unused" primary prompt; this is an example of what *not* to do:
sessions. After the last line of input or output is presented, there should
be no trailing prompt. An example of correct usage is:

.. code-block:: python
>>> 1 + 1
2
>>>
Syntax highlighting is handled in a smart way:

Expand Down

0 comments on commit 4961fe7

Please sign in to comment.