[TxMt] GTDAlt bug

Charilaos Skiadas cskiadas at uchicago.edu
Fri Jul 28 22:18:53 UTC 2006


On Jul 28, 2006, at 4:38 PM, Allan Odgaard wrote:

> On 28/7/2006, at 22:46, Charilaos Skiadas wrote:
>
>> [...] since Ruby's unicode support is not sterling by default.  
>> I'll see what I can do in this particular case.
>
> What does the code do? Normally no special unicode support should  
> be necessary to work with strings.

Here is the code that creates the link, which is what causes the  
problem:

   def mark_completed_link(attributes={})
     s = "<input type=\"checkbox\" href=\"\#\""
     attributes.each do |key,value|
       s << " #{key.to_s}=\"#{value.to_s}\""
     end
     pathToScript = File.join(ENV 
['TM_BUNDLE_SUPPORT'],"bin","mark_completed.rb")
     string_to_execute = (e_js_sh pathToScript) + " #{e_js_sh  
self.name} #{e_js_sh self.file.to_s} #{e_js_sh self.line}"
     s << " onClick='TextMate.system(\"2>/dev/console # 
{string_to_execute}\", null); return false;'"
     s << ">Mark!</a>"
   end


Haris





More information about the textmate mailing list