Fixed percent symbols in custom blocks

This fixes issue #476
pull/3/merge
natashasandy 2014-10-21 18:03:15 -07:00
rodzic 5f3279990b
commit 413e6a0e6a
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -688,7 +688,8 @@ CustomCommandBlockMorph.prototype.labelPart = function (spec) {
return CustomCommandBlockMorph.uber.labelPart.call(this, spec);
}
if ((spec[0] === '%') && (spec.length > 1)) {
part = new BlockInputFragmentMorph(spec.slice(1));
var label = spec.replace(/%/g, '');
part = new BlockInputFragmentMorph(label);
} else {
part = new BlockLabelFragmentMorph(spec);
part.fontSize = this.fontSize;