{"action":"closed","issue":{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/570","repository_url":"https://api.github.com/repos/bpmn-io/bpmn-js","labels_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/570/labels{/name}","comments_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/570/comments","events_url":"https://api.github.com/repos/bpmn-io/bpmn-js/issues/570/events","html_url":"https://github.com/bpmn-io/bpmn-js/issues/570","id":159669393,"number":570,"title":"Labels/Names ending with a hyphen are not shown correctly","user":{"login":"sebastiansirch","id":5097197,"avatar_url":"https://avatars.githubusercontent.com/u/5097197?v=3","gravatar_id":"","url":"https://api.github.com/users/sebastiansirch","html_url":"https://github.com/sebastiansirch","followers_url":"https://api.github.com/users/sebastiansirch/followers","following_url":"https://api.github.com/users/sebastiansirch/following{/other_user}","gists_url":"https://api.github.com/users/sebastiansirch/gists{/gist_id}","starred_url":"https://api.github.com/users/sebastiansirch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sebastiansirch/subscriptions","organizations_url":"https://api.github.com/users/sebastiansirch/orgs","repos_url":"https://api.github.com/users/sebastiansirch/repos","events_url":"https://api.github.com/users/sebastiansirch/events{/privacy}","received_events_url":"https://api.github.com/users/sebastiansirch/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bpmn-io/bpmn-js/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-10T16:09:07Z","updated_at":"2016-07-04T11:20:40Z","closed_at":"2016-07-04T11:20:40Z","body":"We noticed a bug concerning label handling in combination with hyphens. When you enter a string which is too long to be displayed in a single line, **the editor cuts off the last hyphen**.\r\n\r\n**Steps to reproduce**\r\n\r\n1.  http://demo.bpmn.io/new\r\n\r\n2.  Create a new task and enter a long string as name, ending with a hyphen (e.g. \"VeryVeryLongString**-**\")\r\n    ![image](https://cloud.githubusercontent.com/assets/5097197/15970444/e3188998-2f34-11e6-9afa-9fea70acbb71.png)\r\n\r\n3.  The name is shown without the last hyphen\r\n    ![image](https://cloud.githubusercontent.com/assets/5097197/15970435/daa9957c-2f34-11e6-8d91-6f366db6536c.png)\r\n\r\n4.  However, the hyphen is still present in the XML\r\n    `<bpmn:task id=\"Task_1282z93\" name=\"VeryVeryLongString-\">`\r\n\r\n\r\n__Implementation Hints__\r\n\r\n* Needs fix in [diagram-js](https://github.com/bpmn-io/diagram-js)\r\n* [`InteractionEvents`](https://github.com/bpmn-io/diagram-js/blob/master/lib/features/interaction-events/InteractionEvents.js) is the component that triggers direct editing on `dblclick`"}}
{"actor":{"display_login":"nikku"}}