noodlebox / betterdiscord-plugins

Assorted small plugins for BetterDiscord
MIT License
87 stars 125 forks source link

LineNumbers - Doesn't copy blank lines properly #48

Closed nirewen closed 5 years ago

nirewen commented 6 years ago

Issue: Line Numbers plugin is not copying blank lines correctly

Expected result: When copied a code, blank lines should stay

Actual result: Blank lines are not copied

Steps to reproduce:

  1. Paste a code with plugin enabled.
  2. The code must have a blank line
  3. Copy the code to the clipboard
  4. Notice the blank lines were not copied, but instead were removed completely

Screenshots: With the plugin enabled: imagem Blank lines were not copied

Without the plugin enabled: imagem Blank lines were copied

shinji257 commented 5 years ago

I got a fix for this issue. Going to submit a PR for this in a moment.