I have a single line of HTML code in Pycharm
<textarea name="message" placeholder="Message"><t t-esc="message"/></textarea>
This is processed in Odoo with lxml. But I don't want that Pycharm reformats the code thus:
<textarea name="message" placeholder="Message">
<t t-esc="message"/>
</textarea>
because I get extra spaces around the text. Is there a way to tell Pycharm not to reformat this specific line?
So as mentioned here, I used:
<!--@formatter:off-->
<!-- Some code -->
<!--@formatter:on-->
But I had to turn on formatter markers in Settings > Editor > Code Style
Thanks Jainik Patel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With