From: Brian I. <in...@tt...> - 2002-02-18 18:19:38
|
On 18/02/02 10:11 -0800, Brian Ingerson wrote: > On 18/02/02 12:48 -0500, Steve Howell wrote: > > > In single line forms stripping trailing whitespace is a feature. We strip > > > leading whitespace. Why would I ever expect the following two lines to be > > > different: > > > > > > - foo > > > - foo > > > # the second one has trailing spaces > > > > > > This stuff was decided a *long* time ago. > > > > > > > Hmm, when you put it like that. :) > > > > Trailing white space is evil. If you put it in files, I think yaml should > > complain loudly. > > Perhaps we should make this a warning and either decide to keep it or trim > it. I'm starting to agree with Clark and Steve. I got bitten by trailing > whitespace in my test suite the other day. Oren? I should have read ahead. Oren's comments on inline collections seem to indicate we should strip trailing whitespace. Let's leave the spec like this and see how it works over the next 3-6 months of implementation. > > > > > Leading white space is more harmless. Leading white space is usually there for > > alignment or due to space-bar-happy data entry clerks. If you put leading white > > space in files, I think yaml should just quietly trim it off for you. > > > > > > > > > > _______________________________________________ > > Yaml-core mailing list > > Yam...@li... > > https://lists.sourceforge.net/lists/listinfo/yaml-core > > _______________________________________________ > Yaml-core mailing list > Yam...@li... > https://lists.sourceforge.net/lists/listinfo/yaml-core |