From 589f6e70778416a5a74677c435bc64e90948ad01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciar=C3=A1n=20Walsh?= Date: Thu, 14 Aug 2008 17:27:03 +0800 Subject: [PATCH] =?UTF-8?q?TextMate=20commands=20should=20always=20use=20t?= =?UTF-8?q?abs=20for=20indentation;=20TextMate=20will=20automatically=20co?= =?UTF-8?q?nvert=20the=20indentation=20into=20the=20user=E2=80=99s=20selec?= =?UTF-8?q?ted=20preference.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Dr Nic Williams --- Support/bin/intelligent_migration_snippet.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Support/bin/intelligent_migration_snippet.rb b/Support/bin/intelligent_migration_snippet.rb index 2e5ac57..17942a8 100755 --- a/Support/bin/intelligent_migration_snippet.rb +++ b/Support/bin/intelligent_migration_snippet.rb @@ -78,8 +78,7 @@ } def indent(code) - spaces = ' ' * (2 * ENV['TM_TAB_SIZE'].to_i) - lines = code.to_a.collect { |s| spaces + s } + lines = code.to_a.collect { |s| "\t\t" + s } lines.to_s + "\n" end