[ditz-talk] [PATCH] Add non-commented empty line when asking via editor
Daniel Kalør
daniel at kalor.dk
Thu Nov 13 05:02:35 EST 2008
Some editors automatically comment new lines made after/before a
commented block
---
lib/ditz/lowline.rb | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/ditz/lowline.rb b/lib/ditz/lowline.rb
index ff7b752..2f9fb2a 100644
--- a/lib/ditz/lowline.rb
+++ b/lib/ditz/lowline.rb
@@ -120,6 +120,7 @@ module Lowline
f.puts default
f.puts
end
+ f.puts
f.puts q.gsub(/^/, "## ")
f.puts "##"
f.puts "## Enter your text above. Lines starting with a '#' will be ignored."
--
1.6.0.3
More information about the ditz-talk
mailing list