From: "Peña, Botp" Date: 2003-01-17T11:03:57+09:00 Subject: Re: ruby-dev summary 19198-19345 Sir Nobu [mailto:nobu.nokada@softhome.net]: > > #this one combines use (since you may or may not use indenter) > > s1 = <<|EOS > > |================================ > > | #{hi} > > | I have to indent this line > > | And also this list line > > | to make it look good > > |================================ > > #{verylongstring} whose length I do not know/care > > Lots of lines > > follow here > > and here.... blahblah blah > > I don't mind.... works all the time > > EOS > > > > > > Is this possible? > > What possiblity? Yes for implementation, but I'm not sure > about the possiblity of adoption. sorry. Yes, I only meant implementation. Thank you. > > I thought concatenated 2 literals, but noticed here-doc > wasn't allowed after here-doc. This sample works as you > expected but looks strange a bit. > > s1 = <<-EOS "\ > |================================ > | #{hi} > | I have to indent this line > | And also this list line > | to make it look good > |================================ > EOS > #{verylongstring} whose length I do not know/care > Lots of lines > follow here > and here.... blahblah blah > I don't mind.... works all the time > " Yes, you are right (as always). I see danger in dangling/orphan '"'. Can I override quote(")? > Nobu Nakada kind regards -botp