From: YANAGAWA Kazuhisa Date: 2005-07-15T19:44:26+09:00 Subject: Re: multi-line strings with """ In Message-Id: <20050715061147.A28910@cs.mcgill.ca> Navindra Umanee writes: > Why is it that multi-line strings that begin with """ close themselves > when a single " is encountered? > > irb(main):006:0> """ > irb(main):007:0" This is a multi-line string > irb(main):008:0" with a " > => "\nThis is a multi-line string\nwith a " 1. multiple string literals are concatenated. 2. There're no multi-line string specific quotations. In the above case your string is parsed as "" and "\nThis...." in a sequence. > Any chance this behavior will change in the next Ruby? :-) You can use: "mere single double-quotation for multi-line string" str = <