From 21f5e220b738add01c19c2b15a76f2d240b2c0d5 Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Mon, 23 Jan 2012 21:42:25 -0500 Subject: v3dv: replace use of most ruby exclamation (!) method actions --- lib/sisu/v3dv/shared_txt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/sisu/v3dv/shared_txt.rb') diff --git a/lib/sisu/v3dv/shared_txt.rb b/lib/sisu/v3dv/shared_txt.rb index c59e1866..4afddc05 100644 --- a/lib/sisu/v3dv/shared_txt.rb +++ b/lib/sisu/v3dv/shared_txt.rb @@ -70,8 +70,8 @@ module SiSU_TextUtils line=0 out=[] out[line]='' - @para.gsub!(/
/,'
') - @para.gsub!(/#{Mx[:br_nl]}/,"\n\n") + @para=@para.gsub(/
/,'
'). + gsub(/#{Mx[:br_nl]}/,"\n\n") words=@para.scan(/\n\n|
|\S+/m) while words != '' word=words.shift -- cgit v1.2.3