Here is my scenario:
When the user clicks a button in our GUI, they get a pre-formatted code snippet in a textbox. They have the option to click a ‘Copy’ button. This button uses the copy to clipboard function.
The issue arises when the user pastes the clipboard contents. The preformatted code snippet does not appear the same. Specifically, the line breaks are removed.
Is there a way to fix this so that the pasted text stays true to the original format?
#Engineering#Sustainability