ejira icon indicating copy to clipboard operation
ejira copied to clipboard

verbatim text (curly braces)

Open MadEarl opened this issue 4 years ago • 4 comments

Does anyone else have the problem that Jira verbatim text is not converted?

When I have ~Example Text~ in org, it gets converted correctly to {{Example Text}} in Jira, but when converting from Jira to org, the replacement does not occur, the curly braces end up in org and are converted to Jira markup on the next push, so that the text in Jira subsequently is garbled.

I have checked the regex pattern, it seems ok. I am at a loss as to why the transformation does not happen.

MadEarl avatar Jun 09 '20 14:06 MadEarl

I've just started using ejira, and I've noticed it does this also. A JIRA project I've imported makes heavy use of the {color:#00b8d9}Example{color} syntax. I don't know if it's possible to support coloured text, but it'd be nice to at least hide the syntax so it's not visible in emacs.

johnhamelink avatar Jun 23 '20 16:06 johnhamelink

Colored text was something I also ran into, but did not end up implementing as there was no support for it in the org-mode. It would be really nice if I could at least edit an issue description, which already has coloring - without destroying it.

Creating a body of text with coloring in org-mode would probably require extending org syntax itself.

nyyManni avatar Jun 23 '20 16:06 nyyManni

It's not the end of the world - just being able to escape JIRA's UI is a huge win on its own :) But a nice to have!

johnhamelink avatar Jun 23 '20 16:06 johnhamelink

I fixed the {{}} issue; if it by itself is causing trouble for others, I can make the fix available. IIRC, it had to do with replace-regex-in-string misbehaving in certain circumstances, so I replaced it with a similar function from the s package. My fork has the change.

MadEarl avatar Jun 23 '20 19:06 MadEarl