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

<format> doesn't respect whitespace from variables inside of {{#tag: ...}} #131

Open
Steve0Greatness opened this issue Sep 14, 2024 · 1 comment

Comments

@Steve0Greatness
Copy link

Hey there! wiki.penguinmod.com has a the template Infobox block. One thing needed for this template is the Scratchblocks extension, which allows for the programmatic creation of SVG versions of Scratch's (the block-based programming language) blocks.

This template (Infobox block), needed the ability to use Scratchblocks. Scratchblocks provides the tag <scratchblocks>, but using the tag like that, for whatever reason, didn't seem to be working; so I used {{#tag: scratchblocks|...}} instead. Unfortunately, this specific circumstance seems to lead to the whitespace being stripped, thus making the Scratchblocks render incorrectly.

Take a look at this block:

image

This is how it renders within the infobox. Meanwhile, it is supposed to render like:

image

For reference, both blocks are using the following syntax:

for [] in () {

}::#ff791a
@medlans
Copy link

medlans commented Sep 14, 2024

I remember these working before (as in when I last edited the block page that you showed) but I have no idea if that's just a false memory. Also, this has happened to other blocks too (and might happen to other blocks as well if we try to change the images to scratchblocks or when we create more c-block pages)

https://wiki.penguinmod.com/wiki/For_()_in_()

https://wiki.penguinmod.com/wiki/All_at_once

https://wiki.penguinmod.com/wiki/For_each_()_in_()_(Temporary_Variables)

Edit: Actually the new version of the infobox block page was created after so I have no idea

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

No branches or pull requests

2 participants