Skip to content

Commit

Permalink
🐛 Fix new line block by escaping some characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Androz2091 committed Apr 28, 2020
1 parent 8703b3e commit e0e68d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blocks/text/newline.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ Blockly.Blocks[blockName] = {
};

Blockly.JavaScript[blockName] = function() {
return [ '\n', Blockly.JavaScript.ORDER_ATOMIC ];
return [ '\'\\n\'', Blockly.JavaScript.ORDER_ATOMIC ];
};

0 comments on commit e0e68d4

Please sign in to comment.