mirror of
https://github.com/google/blockly.git
synced 2026-01-05 08:00:09 +01:00
Fix line wrapping in Dart comments.
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user