sphinx-copybutton icon indicating copy to clipboard operation
sphinx-copybutton copied to clipboard

Blank Lines Stripped from code

Open flywire opened this issue 2 years ago • 0 comments

Describe the bug

context Blank lines are often part of code.

expectation Blank lines should be retained in code.

bug But instead ___ happens Blank lines are stipped from code.

console See the last example in the docs

problem This is a problem for people doing ___ because ___ some code requires blank lines for code.

Reproduce the bug

See the last example in the docs

List your environment

The fix is to strip ">>>" as well as ">>> " (note the trailing space).

flywire avatar Feb 04 '23 08:02 flywire