Mercurial > mplayer.hg
changeset 20495:27c1fa3a228e
Add \N at the end of each subtitle line when converting from subdata.
author | eugeni |
---|---|
date | Sun, 29 Oct 2006 13:52:51 +0000 |
parents | 30fce0f93ad1 |
children | e375b17bb74a |
files | libass/ass_mp.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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)) {