On May 12, 2006, at 2:01 AM, textmate-request@lists.macromates.com wrote:

To: TextMate users <textmate@lists.macromates.com>

Subject: Re: [TxMt] Linefeeds in commands & snippets

Reply-To: TextMate users <textmate@lists.macromates.com>



This is a Python issue. Python writes a newline to the end of all print statements, which is where this is coming from. You could write:


print newtask,


which would not write a newline, but would add a space. In order to write -just- the text, this would work:


#!/usr/bin/python

import os,sys


def texter():

oldtask = os.environ['TM_CURRENT_LINE']

# oldtask = "Alligator"

newtask = "DONE "

for i in range (len(oldtask)):

if i > 4:

newtask = newtask + oldtask[i]

sys.stdout.write(newtask)

texter()



Lindsay


Lindsay - 

Thanks for the help, I thought it was something I was doing wrong in TextMate.  

Mike