testmycode / tmc-server

Test My Code exercise server used by e.g. http://mooc.fi/
GNU General Public License v2.0
46 stars 41 forks source link

tmc-paste: newlines inserted between each line of code copied from firefox #548

Closed eh7pg78i closed 2 years ago

eh7pg78i commented 2 years ago

Copying from a tmc-paste code listing in Firefox inserts an extra newline between each line of code when pasted into a text editor.

Copying works as expected in the Chromium browser.

The problem disappears when highlightjs-line-numbers is prevented from loading. If line numbering is unimportant this may be the better solution.

The issue appears to be caused independently by to two issues with Firefox, at least one of which is a bug:

Redande commented 2 years ago

Thank you for bringing this problem to our attention, and thank you for the pull request #547 to fix this!

The pull request has now been merged, so I'll close this issue.