We use the EuiCodeBlock to display read-only scripts. There are rare cases when lines of code end in a question mark. The isCopyable attribute is applied to the component and our users press the button in the UI to copy the script contents to their clipboard. For some weird reason, when the clipboard contents are pasted into a generic text editor the "question marks" go missing... but only if they're located at the end of a line.
Adding a blank space to lines ending with "$" is a kludgy workaround.
For example:
- Script content:
a? Copy button action places a on the clipboard. <-- BUG
- Script content:
a?a Copy button action places a?a on the clipboard.
- Script content:
a? Copy button action places a? on the clipboard.
``
We use the EuiCodeBlock to display read-only scripts. There are rare cases when lines of code end in a question mark. The isCopyable attribute is applied to the component and our users press the button in the UI to copy the script contents to their clipboard. For some weird reason, when the clipboard contents are pasted into a generic text editor the "question marks" go missing... but only if they're located at the end of a line.
Adding a blank space to lines ending with "$" is a kludgy workaround.
For example:
a?Copy button action placesaon the clipboard. <-- BUGa?aCopy button action placesa?aon the clipboard.a?Copy button action placesa?on the clipboard.``