From: Shannon Fang Date: 2002-12-16T04:33:29+09:00 Subject: syntax error (Re: multi-lang support in Ruby) Hi, The following statement will generate a syntax error: text.gsub!(/&#(\d+);/) do begin $1.to_i.chr rescue end; end also, this is wrong: text.gsub!(/&#(\d+);/) do $1.to_i.chr rescue end but this is ok: text.gsub!(/&#(\d+);/) do begin $1.to_i.chr rescue end; end Can anyone explain to me the general rules of when I can write code on one line, and when I must write it on multiple lines? Thanks! Shannon