majintao0131 / yaml-cpp

Automatically exported from code.google.com/p/yaml-cpp
MIT License
0 stars 0 forks source link

newline emitter bug #72

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create a nested sequence.
2. Emit the nested sequence.
3. Notice that newlines are added after the hyphen.

What is the expected output? What do you see instead?

The expected output is the for the hyphen and sequence item to be on the
same line.  The additional newline makes it difficult for humans to read,
as it breaks up the flow of the test.

What version of the product are you using? On what operating system?

I built this on Linux.  I verified the behavior on 0.2.5 and the most
recent SVN repository, dated on May 24th, 2010.

Please provide any additional information below.

There is a two line patch provided by iwaitforxmas on your forums. Please
consider adopting this patch in your upstream releases.  I have made a
patch based on iwaitforxmas' comments, and have attached it to this
message.  The unit tests all pass, but the newline problem is fixed.

Original issue reported on code.google.com by vishnu...@gmail.com on 24 May 2010 at 9:06

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by jbe...@gmail.com on 28 Oct 2010 at 9:04