"Surround with" swallows previous tags.

已回答

I created a custom "surround with" with the following syntax: {% trans "$SELECTION$" %}

if I now apply this to the following code (Only "Upgrade" is selected): {% block title %}Upgrade{% endblock %}

It results in {% trans "Upgrade" %}{% endblock %}. The opening {% block title %} gets removed, although it was not selected.

This doesn't happen if the there is eg. a html tag in front of the string.

0

Looks like a bug, please submit at https://youtrack.jetbrains.com/issues/IDEA with the sample file to reproduce and with your template settings.

0

请先登录再写评论。