fix(boards): 修复xpython下换行符自动添加 \
This commit is contained in:
@@ -209,7 +209,7 @@
|
|||||||
"boardIndex": "./boards/default/arduino_esp32/index.xml",
|
"boardIndex": "./boards/default/arduino_esp32/index.xml",
|
||||||
"env": {
|
"env": {
|
||||||
"electron": true,
|
"electron": true,
|
||||||
"web": false,
|
"web": true,
|
||||||
"webCompiler": true,
|
"webCompiler": true,
|
||||||
"webSocket": true
|
"webSocket": true
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -3,7 +3,8 @@ import * as Blockly from 'blockly/core';
|
|||||||
export const text = function (_, generator) {
|
export const text = function (_, generator) {
|
||||||
// Text value.
|
// Text value.
|
||||||
//var code = 'String('+generator.quote_(this.getFieldValue('TEXT'))+')';
|
//var code = 'String('+generator.quote_(this.getFieldValue('TEXT'))+')';
|
||||||
var code = generator.quote_(this.getFieldValue('TEXT'));
|
// var code = generator.quote_(this.getFieldValue('TEXT'));
|
||||||
|
var code = `"${this.getFieldValue('TEXT')}"`;
|
||||||
return [code, generator.ORDER_ATOMIC];
|
return [code, generator.ORDER_ATOMIC];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user