Oh I now see I misread; it's about whitespace, not newlines. But the bundle is a modified fork of the whitespace one:<div><div><br></div><div>https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle<br></div><br><signature>Sent from <a href="https://n1.nylas.com/link/bf0e333102317dc6a7c9eba80e15080db3e42923e8627ea4c407e9960acefb88/0?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1">Nylas Mail</a>, the best free email app for work</signature></div>
<div class="gmail_quote nylas-quote nylas-quote-id-03f75cacbdc060d865a264ff8d743c2505fbbf42049cbd04f4ec711b39443548">
<br>
On Sep 21 2017, at 10:57 pm, Koen Punt <koen@koenpunt.nl> wrote:
<br>
<blockquote class="gmail_quote"
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have bundle installed which injects that functionality for all languages:<div><div><br /></div><div>https://github.com/hajder/Ensure-New-Line-at-the-EOF.tmbundle<br /></div><div><br /></div><div>So no need to change the semantic classes of other bundles or whatnot.</div><div><br /></div><div>K.</div><br />Sent from <a href="https://n1.nylas.com/link/bf0e333102317dc6a7c9eba80e15080db3e42923e8627ea4c407e9960acefb88/0?redirect=https%3A%2F%2Fnylas.com%3Fref%3Dn1">Nylas Mail</a>, the best free email app for work</div><img width="0" height="0" style="border:0; width:0; height:0;" />
<div>
<br />
On Sep 21 2017, at 10:54 pm, George Fields <george.b.fields@gmail.com> wrote:
<br />
<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<pre class="nylas-plaintext">I know that you can rig TextMate 2 to trim trailing space on save by
editing the Text -> Converting / Stripping -> Trim... bundle by
changing the semantic class (or creating a whole new bundle). It works
well, but I was wondering if there are any plans to add this as an
option in the preferences (with a checkbox, etc.) for convenience?
It's a rather common one to have that's found on most other editors
I've seen, and it would be super cool to not have to mess with the
bundles for such a basic thing.
Kind regards,
- g
_______________________________________________
textmate mailing list
textmate@lists.macromates.com
http://lists.macromates.com/listinfo/textmate
</pre>
</blockquote>
</div>
</blockquote>
</div>