Engineering

  • 1.  Clipboard not saving format

    Posted Tue November 28, 2017 11:03 AM

    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?



  • 2.  RE: Clipboard not saving format

    IBM Select
    Posted Fri December 08, 2017 11:39 PM

    I don't know the command off the top of my head but I recommend using rich text copy or some equivalent, by using rich text it will preserve the formatting.