Project

General

Profile

Bug #1311 ยป syck_scan_scalar2.patch

coatl (caleb clausen), 09/30/2009 02:23 AM

View differences:

ext/syck/emitter.c (working copy)
571 571
        flags |= SCAN_MANYNL_E;
572 572
    }
573 573
    if ( 
574
        ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' ) ) ||
574
        ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' || cursor[0] == '\n' || cursor[0] == '\r' ) ) ||
575 575
        ( len > 1 && ( cursor[len-1] == ' ' || cursor[len-1] == '\t' ) )
576 576
    ) {
577 577
        flags |= SCAN_WHITEEDGE;