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) {
if (lastInput && lastInput.type == 'input_dummy') {
var fields = lastInput.getInputTargetBlock('FIELDS');
if (fields && getFieldsJson_(fields).join('').trim() != '') {
if (lastInput.align) {
JS.lastDummyAlign = lastInput.align;
var align = lastInput.getFieldValue('ALIGN');
if (align != 'LEFT') {
JS.lastDummyAlign = align;
}
args.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