The copy button read the whole block's `innerText` and then removed every
`\n\n\n` sequence, which dropped the blank lines between lines of code.
On blocks with line numbers, the same `innerText` also picked up the
number column, so pasting produced "1", the first line, "2", "3" and so
on.
Join the text of the visible `.line` elements instead. Line numbers sit
outside those elements, and lines hidden by an example's visible range
stay hidden, so the clipboard matches what the block shows.
The `.remove` branch goes with it, since no line has carried that class
since 8ec0a4ee5c dropped diff support from docs-code.
To increase the ease of development we are moving @angular/docs into the adev directory within this repo. While
we are doing this to improve our development experience in the short term, efforts are also in place
to maintain a division between this @angular/docs (shared) code and adev itself, so that it can be extracted
back out in the future when components is ready to leverage it as well.
PR Close#57132