Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

[095] breed javascript is wrapped and escaped in certain cases #1009

Open
olafmol opened this issue Jul 1, 2017 · 0 comments
Open

[095] breed javascript is wrapped and escaped in certain cases #1009

olafmol opened this issue Jul 1, 2017 · 0 comments
Labels
Milestone

Comments

@olafmol
Copy link
Member

olafmol commented Jul 1, 2017

when pasting this breed content from the workflows tutorials in de 095 UI editor:

name: hello_workflow
deployable:
  type: application/javascript
  definition: |
    'use strict';

    var vamp = require('vamp-node-client'); // required to interact with the Vamp API

    var api = new vamp.Api(); // a new Vamp API object

    // create a Vamp event - tag, value, event_type
    api.event('tag1:tag2', 'optional_value', 'hello_workflow');   
  

the javascript content is wrapped and escaped when saving and re-opening.

when removing all line breaks at the end, and then adding one line break, the formatting stays intact:

name: hello_workflow
deployable:
  type: application/javascript
  definition: |
    'use strict';

    var vamp = require('vamp-node-client'); // required to interact with the Vamp API

    var api = new vamp.Api(); // a new Vamp API object

    // create a Vamp event - tag, value, event_type
    api.event('tag1:tag2', 'optional_value', 'hello_workflow');
    
@olafmol olafmol added the bug label Jul 1, 2017
@olafmol olafmol added this to the 0.9.x milestone Jul 1, 2017
@olafmol olafmol changed the title [095] breed javascript is escaped in certain cases [095] breed javascript is wrapped and escaped in certain cases Jul 1, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant