]> git.cworth.org Git - sup/commitdiff
normalize whitespace
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 30 Dec 2006 15:15:00 +0000 (15:15 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Sat, 30 Dec 2006 15:15:00 +0000 (15:15 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@122 5c8cc53c-5e98-4d25-b20a-d8db53a31250

lib/sup/modes/text-mode.rb

index f4952191a59775fab7f68269f72e78679234fb50..be3bc1107952bae9e8c1ab9340bdbce1c2f57a00 100644 (file)
@@ -4,7 +4,7 @@ class TextMode < ScrollMode
   attr_reader :text
 
   def initialize text=""
-    @text = text
+    @text = text.normalize_whitespace
     update_lines
     buffer.mark_dirty if buffer
     super()