vendor/gems/BlueCloth-1.0.0/lib/bluecloth.rb
### Convert tabs to spaces in place and return self if any were converted.
Convert tabs to spaces in place and return self if any were converted.
Convert tabs to spaces in place and return self if any were converted .
def detab!( tabwidth=TabWidth )
		newstr = self.split( /\n/ ).collect {|line|
			line.gsub( /(.*?)\t/ ) do
				$1 + ' ' * (tabwidth - $1.length % tabwidth)
			end
		}.join("\n")
		self.replace( newstr )
	end
def detab! ( tabwidth = TabWidth ) newstr = self . split ( / \n / ) . collect { | line | line . gsub ( / (.*?) \t / ) do $1 + ' ' * ( tabwidth - $1 . length % tabwidth ) end } . join ( "\n" ) self . replace ( newstr ) end
Convert tabs to spaces in place and return self if any were converted.
Convert tabs to spaces in place and return self if any were converted .
tabwidth
<not_specific>