usebruno / bruno

Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
https://www.usebruno.com/
MIT License
27.92k stars 1.3k forks source link

[User Experience] Scripts should have their trailing whitespace stripped #357

Open lared opened 1 year ago

lared commented 1 year ago

As collections are meant to be shared via source control, removing annoying things like trailing whitespace from scripts would help avoid having a mess when those are edited.

lared commented 1 year ago

Implementation-wise it's going to be a bit of a pain because doing it outside of CodeMirror causes the caret to be reset to beginning of the line every time the file gets reloaded.