Universal-Omega / PortableInfobox

GNU General Public License v3.0
12 stars 11 forks source link

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

Open Steve0Greatness opened 1 month ago

Steve0Greatness commented 1 month ago

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 commented 1 month ago

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