google / bamboo-soy

An intellij plugin supporting Closure Template language (Soy)
Apache License 2.0
48 stars 17 forks source link

Formatting removes space between `not` and field access #258

Closed DreierF closed 2 years ago

DreierF commented 2 years ago

The following soy code is formatted in a way that strips the space after the not operator:

{namespace name.space.MyTemplate}

{template .myTemplate}
    {@param foo: ?}

    {if not $foo.bar}
        <br />
    {/if}

{/template}

After formatting this looks like this:

{namespace name.space.MyTemplate}

{template .myTemplate}
    {@param foo: ?}

    {if not$foo.bar}
        <br />
    {/if}

{/template}

This does only seem to happen for not $foo.bar. It keeps the space as expected not $foo

DreierF commented 2 years ago

@crdev Thanks for fixing this! Any chance to publish a new release with the fix included?