Skip to content

Commit d50f883

Browse files
Fix trailing whitespace in code literal
rst apparently requires that the closing double backticks for code literals appear at the end of a "word", rather than preceded by a space as markdown allows. This means that ``` ``julia> `` ``` doesn't parse correctly. The fix is to just remove the trailing space and explicitly mention the need for a space after the `>`.
1 parent a57b50d commit d50f883

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/manual/interacting-with-julia.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ There are a number useful features unique to interactive work. In addition to sh
4242
julia> ans
4343
"12"
4444

45-
In Julia mode, the REPL supports something called *prompt pasting*. This activates when pasting text that starts with ``julia> `` into the REPL.
46-
In that case, only expressions starting with ``julia> `` are parsed, others are removed.
45+
In Julia mode, the REPL supports something called *prompt pasting*. This activates when pasting text that starts with ``julia>`` into the REPL.
46+
In that case, only expressions starting with ``julia>`` are parsed, others are removed.
4747
This makes it is possible to paste a chunk of code that has been copied from a REPL session without having to scrub away prompts and outputs.
4848
This feature is enabled by default but can be disabled or enabled at will with ``Base.REPL.enable_promptpaste(::Bool)``.
4949
If it is enabled, you can try it out by pasting the code block above this paragraph straight into the REPL.

0 commit comments

Comments
 (0)