Skip to content

empty template parameter (null default) inside html tag definition causes brace mismatch #121

@joshinils

Description

@joshinils
Image
the text in above image
<div {{#if:{{{param|}}}|{{{param}}}|{{ATemplate|Template arg}}}}> div content </div>
<div {{#if:{{{param| }}}|{{{param}}}|{{ATemplate|Template arg}}}}> div content </div>
<div {{#if:{{{param|a}}}|{{{param}}}|{{ATemplate|Template arg}}}}> div content </div>

<div {{#if:{{{param|}}}|{{{param}}}|{{ATemplate|Template arg}} }}> div content </div>
<div {{#if:{{{param| }}}|{{{param}}}|{{ATemplate|Template arg}} }}> div content </div>
<div {{#if:{{{param|a}}}|{{{param}}}|{{ATemplate|Template arg}} }}> div content </div>
example from #83

The extra space between the two pairs of closing curly braces helps, but not all of the time – and usually there isn't one there it seems.

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