We are seeing some strange behavior around copy/pasting code over the last month on Agent Workspace. Is anyone else seeing the following behaviors?
Content wrapped in angled brackets not preserved
This text when copied...
curl --cacert <path-to-your-cacert>
when pasted shows as:
curl --cacert
Indentation not preserved
This text when copied...
bar: |
this is not a normal string it
spans more than
one line
see?
when pasted shows as:
bar: |
this is not a normal string it
spans more than
one line
see?
I've also tried to get around this with an app writing using the various options in the Zendesk App Framework.
Adding the following comment using ZAF I get the following results:
curl --cacert <path-to-your-cacert>
bar: |
this is not a normal string it
spans more than
one line
see?
Sample code looks for each invoke action looks like this:
append = () => {
let comment=document.getElementById("pending_comment").value;
client.invoke({ "comment.appendMarkdown": [comment], "app.close": [] });
};
- Using comment.appendText loses indention and line breaks.
curl --cacert <path-to-your-cacert> bar: | this is not a normal string it spans more than one line see?
- Using comment.appendHTML loses angled bracket content, line breaks, and indention
- Using ticket.editor.insert loses angled bracket content, line breaks, and indention
curl --cacert bar: | this is not a normal string it spans more than one line see?
- Using comment.appendMarkdown results in loss of indentation. This is the closest one to being right.
curl --cacert <path-to-your-cacert>
bar: |
this is not a normal string it
spans more than
one line
see?
