# HG changeset patch # User eugeni # Date 1240349273 0 # Node ID 0e5d94f37c5d91037461042875ddbc7ebdad96d9 # Parent 1dfd99eb3280d5badef899ea952c069239b2753e Don't automatically wrap lines when WrapStyle==2. \n and \N still work. diff -r 1dfd99eb3280 -r 0e5d94f37c5d libass/ass_render.c --- a/libass/ass_render.c Tue Apr 21 08:19:22 2009 +0000 +++ b/libass/ass_render.c Tue Apr 21 21:27:53 2009 +0000 @@ -1603,7 +1603,7 @@ mp_msg(MSGT_ASS, MSGL_DBG2, "forced line break at %d\n", break_at); } - if (len >= max_text_width) { + if ((len >= max_text_width) && (frame_context.track->WrapStyle != 2)) { break_type = 1; break_at = last_space; if (break_at == -1)