<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">thanks, I'll give it a try.<div><br></div><div>cheers,</div><div>bill</div><div><br></div><div><br></div><div><br><div><div>On Jan 28, 2016, at 7:22 PM, Graham Heath wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><meta http-equiv="content-type" content="text/html; charset=utf-8"><div dir="auto"><div>The best remove trailing white space remover I know of is in the Avian Missing TextMate Bundle:</div><div><br></div><div><a href="https://github.com/elia/avian-missing.tmbundle">https://github.com/elia/avian-missing.tmbundle</a></div><div><br></div><div>I do have it set to <span style="background-color: rgba(255, 255, 255, 0);">TM_STRIP_WHITESPACE_ON_SAVE = true</span></div><div><br><div>Graham Heath</div></div><div><br>On Jan 28, 2016, at 5:27 PM, Bill Paxton <<a href="mailto:paxton@kitp.ucsb.edu">paxton@kitp.ucsb.edu</a>> wrote:<br><br></div><blockquote type="cite"><div><span>Excellent suggestions -- thanks to both of you.</span><br><span></span><br><span>Turns out that I somehow got long sections of trailing blanks in several lines, and that's why a visual scan didn't show the location.</span><br><span></span><br><span>I'm sure there must be a way to delete trailing blanks from all lines -- could you tell me how or point me to the relevant information.</span><br><span></span><br><span>Thanks again,</span><br><span>Bill</span><br><span></span><br><span></span><br><span></span><br><span></span><br><span>On Jan 28, 2016, at 4:33 PM, Matt Neuburg wrote:</span><br><span></span><br><blockquote type="cite"><span>Why not simply do a Find in the document for a regular expression of this sort:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>^.{100,}</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>...that is to say, "a line longer than 100 characters"? For 100, substitute any number you think might be exceeded by just this one excessive line. m.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><span>On Jan 28, 2016, at 4:14 PM, Hans-Jörg Bibiko wrote:</span><br><span></span><br><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Hi Bill,</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>it's fast written ;) - and if you don't have more than 999999999 lines in your document:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Create a new Command; input: selection or text; output: discard</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Command:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>#!/bin/sh</span><br></blockquote><blockquote type="cite"><span>open txmt://open?line=`nl -nrz -w9 -b a|awk '{print length, $0}'|sort -nr|head -1|awk '{print $2}'`</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>This command will locate the caret at the beginning of the longest line in the current document.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Cheers, Hans</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>_______________________________________________</span><br></blockquote><blockquote type="cite"><span>textmate mailing list</span><br></blockquote><blockquote type="cite"><span><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a></span><br></blockquote><blockquote type="cite"><span><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></span><br></blockquote><span></span><br><span></span><br><span>_______________________________________________</span><br><span>textmate mailing list</span><br><span><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a></span><br><span><a href="http://lists.macromates.com/listinfo/textmate">http://lists.macromates.com/listinfo/textmate</a></span><br></div></blockquote></div><br>_______________________________________________<br>textmate mailing list<br><a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>http://lists.macromates.com/listinfo/textmate</blockquote></div><br></div></body></html>