Bill - <br><br>I never thought about empty lines in a file - I usually just have a laundry list, or break stuff out into smaller project files.  My code intentionally removes whitespace, to prevent the occasional empty line at te bottom of the listfrom growing.  Maybe we need to look at creating some kind of plist to cover this?
<br><br>Mike<br><br><div><span class="gmail_quote">On 10/27/06, <b class="gmail_sendername">Bill Bumgarner</b> <<a href="mailto:bbum@mac.com">bbum@mac.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
It was bothering me that the cleanup command in GTD2 wasn't<br>preserving whitespace before projects.  I.e. this...<br><br><br>* Foo<br>- bar<br><br>* Baz<br>- bob<br><br>- fred<br><br>Would be turned into:<br><br>* Foo<br>
- bar<br>* Baz<br>- bob<br>- fred<br><br>This "fixes" it in a way that'll likely be laughed at.  Point and<br>laugh away, it works for me... :-)<br><br>b.bum<br><br>Index: GTD2.tmbundle/Commands/Cleanup.tmCommand
<br>===================================================================<br>--- GTD2.tmbundle/Commands/Cleanup.tmCommand    (revision 5658)<br>+++ GTD2.tmbundle/Commands/Cleanup.tmCommand    (working copy)<br>@@ -17,7 +17,11 @@
<br>    if (myTest.pre_match != "+" and myTest.pre_match.length &gt; 0)<br>      puts line<br>    else<br>-    myDone = myDone + line<br>+    if (line != "\n")<br>+           myDone = myDone + line
<br>+       else<br>+        puts "\n"<br>+       end<br>    end<br>end<br>puts myDone</string><br><br><br>______________________________________________________________________<br>For new threads USE THIS: 
<a href="mailto:textmate@lists.macromates.com">textmate@lists.macromates.com</a><br>(threading gets destroyed and the universe will collapse if you don't)<br><a href="http://lists.macromates.com/mailman/listinfo/textmate">
http://lists.macromates.com/mailman/listinfo/textmate</a><br></blockquote></div><br>