|
From: Joe A. <jm...@fr...> - 2012-11-29 03:15:32
|
Hello Kirill, On 28/11/12 20:37, Kirill Simonov wrote: > PyYAML forces double-quote style on scalars with end-of-line whitespace. > I think the rationale was that end-of-line whitespace could not be > detected visually in block style. > > Here is the relevant code: > http://pyyaml.org/browser/pyyaml/trunk/lib/yaml/emitter.py#L761 > > Thanks, Actually, thanks are due to you. You're right, it's just one space at the end of the first line, before the CASE. Once I remove that, the block format works well. I guess if we want to get the nice formatting we'll have to preprocess view definitions and function source text. Thanks again, Joe |