From: Clark C. E. <cc...@cl...> - 2003-10-22 22:49:55
|
On Wed, Oct 22, 2003 at 11:21:53PM +0200, Oren Ben-Kiki wrote: | Clark C. Evans wrote: | > You can use double quoted strings: | > | > url: "http://spacelink.nasa.gov/NASA.Projects/Space.Science/\ | > Universe/Advanced.Composition.Explorer.ACE/.index.html" | > | > but this kinda sucks beacuse it breaks indentation. | | Nope: that's illegal YAML. The second line must be more-indented: | | url: "http://spacelink.nasa.gov/NASA.Projects/Space.Science/\ | Universe/Advanced.Composition.Explorer.ACE/.index.html" Of course, since l-l-inner-double-line starts with i-s-ignored-leading one could use any amount of leading indentation, *generates stupid Clark look* url: "http://spacelink.nasa.gov/NASA.Projects/Space.Science/\ Universe/Advanced.Composition.Explorer.ACE/.index.html" This does imply, of course that if you need to "break" a line with the double quoted version with extra spaces, you escape the space character, this: "here are => \ \ <= two spaces." equals: 'here are ==> <== two spaces' | > I seem to remember discussing a while back about having the | > quoted style variants imply concatenation (like python and many | > other languages): | | No need to. Only that one is then limited to strictly the double quoted style, certainly good enough for me. *bings* Best, Clark |