# HG changeset patch # User reimar # Date 1305796316 0 # Node ID a60ae792b855ecf812644c146d59141644c67db2 # Parent d70f79b6ee18ccf113f54c58f287a8a627d0efe2 SAMI subs: start a new line if there's no space left to append to the previous one. diff -r d70f79b6ee18 -r a60ae792b855 sub/subreader.c --- a/sub/subreader.c Wed May 18 09:45:18 2011 +0000 +++ b/sub/subreader.c Thu May 19 09:11:56 2011 +0000 @@ -173,6 +173,8 @@ break; case 3: /* get all text until '<' appears */ + if (p - text >= LINE_LEN) + sami_add_line(current, text, &p); if (*s == '\0') break; else if (!strncasecmp (s, "
", 4)) { sami_add_line(current, text, &p);