From: Quintus Date: 2009-08-29T02:00:51+09:00 Subject: Re: new lines in string literals James French schrieb: > Hi, > > I have a string literal in this form: > > taxonomy = %q{ > +AttributeControl > NMAttributeControl.* > +NetworkControl > NMNetworkControl*.* > +TimelineControl > NMTimelineControl*.* > +CurveControl > NMCurveControl*.* > *.* > } > > > Is it possible to somehow specify it such that there are (automatically) newline characters at the end of each line? > > Cheers, > James > > Hi, there ARE already Newlines in your string: puts taxonomy.scan(/\n/).size #=> 10 What's your problem? Marvin