Ctrl+Alt+L => removing spaces before ==
已回答
Hello,
I use template tags in html - for eg
{% if u.username == username %}selected="selected" {% endif %}
but when I do a Ctrl+Alt+L to beautify the code, this happens
{% if u.username== username %}selected="selected" {% endif %}
and on running get the error
Could not parse the remainder: '==username'
How to instruct Pycharm not to remove the space before == on beautifying the code via Ctrl+Alt+L
Thanks
Ajit
请先登录再写评论。
Hi Ajitweb! Seems like a bug but I can't reproduce it locally, could you please create a ticket in our bug tracker and attach idea.log from Help | Show Log in ...? What Django version do you use?
Hello Pavel,
Thanks for fast response.
I am learning Django 2
I have uploaded the idea.log to https://youtrack.jetbrains.com/issue/PY-28336
I have also attached screen shots of before and after the 'Ctrl+Alt+L'
Regards
Ajit