Wrong reformat in Smarty capture

Hi,

 

I have following smarty template:

<div>
Paragraph 1
</div>

<div>
Paragraph 2
</div>

<div>
Paragraph 3
</div>

If i do reformat PhpStorm keeps the blank lines between the DIVs as expected.

But if I have following template:

{capture name="content"}
<div>
Paragraph 1
</div>

<div>
Paragraph 2
</div>

<div>
Paragraph 3
</div>
{/capture}

And then do reformat PhpStorm removes the blank lines and the template gets:

{capture name="content"}
<div>
Paragraph 1
</div>
<div>
Paragraph 2
</div>
<div>
Paragraph 3
</div>
{/capture}

 

How can I tell PhpStorm to not remove the blank lines?

My IDE Version is 2016.3.2.

 

Thanks,

Dominik

 

 

0
2 comments

Hi there,

The best I (personally) can suggest is to file new ticket to Issue Tracker

I could not find existing ticket for such case as yours and do not know if workaround exist.

1
Avatar
Permanently deleted user

Thanks. I have create a new ticket.

https://youtrack.jetbrains.com/issue/WI-34799

0

Please sign in to leave a comment.