Commit 7e90591a authored by Neil Fraser's avatar Neil Fraser

Fix lastDummyAlign in Block Factory.

parent ab7984fa
...@@ -125,8 +125,9 @@ function formatJson(code, rootBlock) { ...@@ -125,8 +125,9 @@ function formatJson(code, rootBlock) {
if (lastInput && lastInput.type == 'input_dummy') { if (lastInput && lastInput.type == 'input_dummy') {
var fields = lastInput.getInputTargetBlock('FIELDS'); var fields = lastInput.getInputTargetBlock('FIELDS');
if (fields && getFieldsJson_(fields).join('').trim() != '') { if (fields && getFieldsJson_(fields).join('').trim() != '') {
if (lastInput.align) { var align = lastInput.getFieldValue('ALIGN');
JS.lastDummyAlign = lastInput.align; if (align != 'LEFT') {
JS.lastDummyAlign = align;
} }
args.pop(); args.pop();
message.pop(); message.pop();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment