Fix line wrapping in Dart comments.

This commit is contained in:
Neil Fraser
2016-07-15 16:28:33 -07:00
parent b318eb6504
commit a76635d352

View File

@@ -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.