clipboard-inserter icon indicating copy to clipboard operation
clipboard-inserter copied to clipboard

Respect newlines when inserting text

Open LagoLunatic opened this issue 6 years ago • 2 comments
trafficstars

I believe this line was missed in PR #5. Newlines still didn't work for me after that PR - but if this line is changed as well, then they do work.

LagoLunatic avatar Dec 13 '18 18:12 LagoLunatic

Looks like this still isn't live in the extension on Chrome. I was able to find the file, make the change, and now it works.

cloak17 avatar Oct 05 '21 05:10 cloak17

Yeah this was never merged. But for anyone else who doesn't feel like editing the code of the extension itself, there is an easier workaround: Simply edit the CSS of your .html file to force it to display newlines. After the <style type="text/css">, add the following:

p {
  white-space: pre-wrap;
}

LagoLunatic avatar Oct 05 '21 06:10 LagoLunatic