rust-lang/rust

copying multiple source code lines from rustdoc also copies line numbers

Closed this issue · 2 comments

Since 1.90, looking at the source code for a crate and then selecting multiple lines to copy them also copies their line numbers, e.g. from https://doc.rust-lang.org/1.90.0/src/std/lib.rs.html I get the following:

//! # The Rust Standard Library
2//!
3//! The Rust Standard Library is the foundation of portable Rust software, a
4//! set of minimal and battle-tested shared abstractions for the [broader Rust
5//! ecosystem][crates.io]. It offers core types, like [`Vec<T>`] and
6//! [`Option<T>`], library-defined [operations on language
7//! primitives](#primitives), [standard macros](#macros), [I/O] and
8//! [multithreading], among [many other things][other].

I can only reproduce this in a Chromium-based browser, not Firefox or WebKit.

@rustbot claim