# HG changeset patch # User reimar # Date 1326626293 0 # Node ID 78e6943b7764b1018e78764edf38b56c2e24c09f # Parent 03f47c7f648186cbd948cd0ae5eb8682d8221350 SSA reader: do not strip commas in commands. diff -r 03f47c7f6481 -r 78e6943b7764 sub/subreader.c --- a/sub/subreader.c Sat Jan 14 23:56:28 2012 +0000 +++ b/sub/subreader.c Sun Jan 15 11:18:13 2012 +0000 @@ -652,6 +652,7 @@ line3[LINE_LEN+1], *line2; char *tmp; + const char *brace; do { if (!stream_read_line (st, line, LINE_LEN, utf16)) return NULL; @@ -669,11 +670,13 @@ line2=strchr(line3, ','); if (!line2) return NULL; + brace = strchr(line2, '{'); for (comma = 4; comma < max_comma; comma ++) { tmp = line2; if(!(tmp=strchr(++tmp, ','))) break; + if(brace && brace < tmp) break; // comma inside command if(*(++tmp) == ' ') break; /* a space after a comma means we're already in a sentence */ line2 = tmp;