diff --git a/generators/dart.js b/generators/dart.js index 6fb1236d4..feec82a2c 100644 --- a/generators/dart.js +++ b/generators/dart.js @@ -191,6 +191,7 @@ Blockly.Dart.scrub_ = function(block, code) { if (!block.outputConnection || !block.outputConnection.targetConnection) { // Collect comment for this block. var comment = block.getCommentText(); + comment = Blockly.utils.wrap(comment, Blockly.Dart.COMMENT_WRAP - 3); if (comment) { if (block.getProcedureDef) { // Use documentation comment for function comments.