Re: PyYAML multi-line strings

Joe Abbate <jma-ICVE9uepxrQgpMukQH3QewC/[email protected]>
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
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

------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.