Fixed last newline of folded scalar bug

This commit is contained in:
jbeder
2009-09-07 06:54:38 +00:00
parent 21232e3bef
commit e1a112a761
3 changed files with 6 additions and 10 deletions

View File

@@ -368,6 +368,7 @@ namespace YAML
params.fold = (indicator == Keys::FoldedScalar);
// eat chomping/indentation indicators
params.chomp = CLIP;
int n = Exp::Chomp.Match(INPUT);
for(int i=0;i<n;i++) {
char ch = INPUT.get();