# HG changeset patch # User eugeni # Date 1162129971 0 # Node ID 27c1fa3a228e357e038df27c7d3283e8a9d68098 # Parent 30fce0f93ad18e6e84a4009890fe00e3e59f1237 Add \N at the end of each subtitle line when converting from subdata. diff -r 30fce0f93ad1 -r 27c1fa3a228e libass/ass_mp.c --- a/libass/ass_mp.c Sun Oct 29 13:17:26 2006 +0000 +++ b/libass/ass_mp.c Sun Oct 29 13:52:51 2006 +0000 @@ -166,9 +166,9 @@ p += snprintf(p, end - p, "{\\an%d}", sub->alignment); for (j = 0; j < sub->lines; ++j) - p += snprintf(p, end - p, "%s ", sub->text[j]); + p += snprintf(p, end - p, "%s\\N", sub->text[j]); - p--; // remove last ' ' + p-=2; // remove last ' ' *p = 0; if (check_duplicate_plaintext_event(track)) {