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)
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;
(4-4/5)