T29531: Implement link anchors to line numbers on syntax-highlighted pages (e.g. .css, .js) has made copying code on Firefox very inconvenient.
Steps to reproduce:
- Open a syntax-highlighted page, e.g. en:MediaWiki:Common.css with Firefox (or any Gecko-based browser, I assume)
- Copy multiple lines, e.g. first 4 lines
Actual result (clipboard content):
/* Reset italic styling set by user agent */ cite, dfn { font-style: inherit; }
Expected result:
/* Reset italic styling set by user agent */ cite, dfn { font-style: inherit; }
Now I have to open the code editor, manually remove the empty lines, or switch to Chrome in order to copy a chunk of code as it's written.