From: Brian I. <in...@tt...> - 2003-09-19 20:18:51
|
On 19/09/03 20:03 +0000, Clark C. Evans wrote: > Sean, > > There is not a "here" like mechanism in YAML, although it has been > proposed many times. It has been rejected before beacuse it > decreases readability, and most editors enable indenting easily. > > If your editor does not provide a nice way to pre-indent files... > then I recommend sed: > > $ sed 's/^/ /g' unindented.txt > indented.txt It might also be possible for you to define your own start and end tags and write a preprocessor script to then indent them properly for you. But YAML itself does not and should not support such tags. Cheers, Brian > > ;) Clark > > On Fri, Sep 19, 2003 at 12:34:08PM -0700, Sean O'Dell wrote: > | I was wondering if YAML had a syntax that allowed a scalar to NOT be > | indented throughout, but had perhaps START and END style tags for large > | blocks of data. I have text blocks that I'm hand-pasting into a YAML > | file and getting everything indented properly is becoming a bit of a > | nightmare. > | > | Sean O'Dell > | > | > | > | ------------------------------------------------------- > | This sf.net email is sponsored by:ThinkGeek > | Welcome to geek heaven. > | http://thinkgeek.com/sf > | _______________________________________________ > | Yaml-core mailing list > | Yam...@li... > | https://lists.sourceforge.net/lists/listinfo/yaml-core > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Yaml-core mailing list > Yam...@li... > https://lists.sourceforge.net/lists/listinfo/yaml-core |