mirror of
https://github.com/google/blockly.git
synced 2026-01-10 02:17:09 +01:00
Fixes #3230 by removing multi-line comments for procedures.
This commit is contained in:
@@ -267,13 +267,8 @@ Blockly.Python.scrub_ = function(block, code, opt_thisOnly) {
|
||||
var comment = block.getCommentText();
|
||||
if (comment) {
|
||||
comment = Blockly.utils.string.wrap(comment,
|
||||
Blockly.Python.COMMENT_WRAP - 3);
|
||||
if (block.getProcedureDef) {
|
||||
// Use a comment block for function comments.
|
||||
commentCode += '"""' + comment + '\n"""\n';
|
||||
} else {
|
||||
commentCode += Blockly.Python.prefixLines(comment + '\n', '# ');
|
||||
}
|
||||
Blockly.Python.COMMENT_WRAP - 3);
|
||||
commentCode += Blockly.Python.prefixLines(comment + '\n', '# ');
|
||||
}
|
||||
// Collect comments for all value arguments.
|
||||
// Don't collect comments for nested statements.
|
||||
|
||||
Reference in New Issue
Block a user