Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix collapse when creating a custom procedure with % in label #3244

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

alexcui03
Copy link

Resolves

Proposed Changes

Add a escape for % when adding a label in procedure declaration block.

Reason for Changes

This pull request fixed the collapse when creating a custom procedure with % in a label. In the function Blockly.ScratchBlocks.ProcedureUtils.updateDeclarationProcCode_, I add escape for % when adding a label to ensure all %s in label should be \% in procCode, because Scratch treats \% in procCode as a escape of %. (see blocks_vertical/procedures.js#L207)

Test Coverage

None.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant