eecs485staff / primer-spec

A Jekyll theme for sites with content-heavy pages
https://eecs485staff.github.io/primer-spec/
MIT License
22 stars 12 forks source link

Enhanced code block copy-paste trailing newline #223

Closed awdeorio closed 1 year ago

awdeorio commented 1 year ago

Describe the bug When you copy/paste code from a multiline enhanced code block, you do not get a trailing newline.

To Reproduce Copy the main.cpp from this EECS 280 tutorial: https://eecs280staff.github.io/p1-stats/setup_vscode.html#project-1-maincpp

Expected behavior The copied text includes a trailing newline for multiline code blocks.

Thanks to @ohjuny for pointing this out in his code review of a forthcoming EECS 280 VS Code tutorial rewrite.