diff options
Diffstat (limited to 'ext/syck')
-rw-r--r-- | ext/syck/emitter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c index eb01033653..985bfb2500 100644 --- a/ext/syck/emitter.c +++ b/ext/syck/emitter.c @@ -570,7 +570,7 @@ syck_scan_scalar( int req_width, const char *cursor, long len ) flags |= SCAN_MANYNL_E; } if ( - ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' ) ) || + ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' || cursor[0] == '\n' || cursor[0] == '\r' ) ) || ( len > 1 && ( cursor[len-1] == ' ' || cursor[len-1] == '\t' ) ) ) { flags |= SCAN_WHITEEDGE; |