rust-lang / book

The Rust Programming Language

Home Page:https://doc.rust-lang.org/book/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Copy copies too much

crutchfield opened this issue · comments

  • I have searched open and closed issues and pull requests for duplicates, using these search terms:
    • copy
    • clipboard
    • Copy to clipboard
  • I have checked the latest main branch to see if this has already been fixed, in this file:
    • none

URL to the section(s) of the book with this problem:
Global to all documentation
For example, https://doc.rust-lang.org/book/ch01-02-hello-world.html

Description of the problem:
The 'Copy to clipboard' copies everything in the source window. For example,

'$ rustc main.rs' is copied instead of just 'rustc main.rs'

This would be useful because the user will not have to edit 'copies' while navigating examples in the Rust Language book.

Suggested fix:
Copy to clipboard should only copy the germane portion of example.

Strange, when I search closed issues for "copy", this is the second issue I see: #3793