[TxMt] HTML Tidy no longer working

Sune Foldager cryo at cyanite.org
Wed Feb 1 14:30:55 UTC 2006


On 01/02/2006, at 15:24, Allan Odgaard wrote:

> On 1/2/2006, at 11:44, stephen hamilton wrote:
>
>> Has anyone experienced this. Im running Textmate 1.5 (v906) with rev
>> 2643 checkout of bundles. Tidy used to work fine but I now get:
>>
>> -e:5: undefined method `match' for #<String:0xc5dd0> (NameError)
>>
>> when I use it. Anyone got any ideas?
>
> This is from the (ruby) post-processing (to convert spaces back to  
> tabs, except for pre blocks).
> Are you on Tiger or Panther (i.e. Ruby 1.8/1.6)? And does this  
> happen for all documents? e.g. try New Document, change language to  
> HTML, type a word and ctrl-shift H (for Tidy).

Yes, because String::match is a ruby 1.8 method. " str.match(xxx) "  
can be changed to the 1.6-safe  " Regex.new(str).match(xxx) " (or / 
str/.match(xxx) if str is a constant).

-- Sune.




More information about the textmate mailing list