lib/textbringer/commands/fill.rb in textbringer-0.3.2 vs lib/textbringer/commands/fill.rb in textbringer-1.0.0
- old
+ new
@@ -36,10 +36,10 @@
private
def fill_string(str, column)
input = StringIO.new(str)
- output = String.new
+ output = +""
fill_column = CONFIG[:fill_column]
prev_c = nil
while c = input.getc
if c == "\n"
if column < fill_column && !input.eof?