Rewrote the output so that it emits correct YAML.

Fixed a bug in the last newline of a block folded scalar.
This commit is contained in:
Jesse Beder
2008-07-05 05:28:23 +00:00
parent d98007b0be
commit dacc631968
12 changed files with 98 additions and 145 deletions

View File

@@ -12,7 +12,7 @@ namespace YAML
virtual ~Scalar();
virtual void Parse(Scanner *pScanner, const ParserState& state);
virtual void Write(std::ostream& out, int indent);
virtual void Write(std::ostream& out, int indent, bool startedLine, bool onlyOneCharOnLine);
// extraction
virtual void Read(std::string& s);