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

Copying an enhanced codeblock duplicates newlines #246

Closed noah-weingarden closed 1 year ago

noah-weingarden commented 1 year ago

Describe the bug After clicking the visual copy button present in an enhanced codeblock and pasting the contents elsewhere, each newline in the original codeblock is duplicated.

To Reproduce Steps to reproduce the behavior:

  1. Go to https://eecs485staff.github.io/p4-mapreduce/#tests-testdata-exec-wc-reduce-py-13
  2. Click on the copy button.
  3. Paste into any textbox.
  4. There are two newlines for each newline in the original code.

Expected behavior The number of newlines in the copied code and pasted code should be the same.

Desktop (please complete the following information):

seshrs commented 1 year ago

The fix will be available in v1.9.3 (I'll release it shortly). Since it's a patch release, all specs will receive the update automatically.