Skip to content

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

@Steve0Greatness

Description

@Steve0Greatness

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions