mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 18:36:09 +00:00
Don't automatically wrap lines when WrapStyle==2.
\n and \N still work. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29219 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
424caeb920
commit
78f362136d
@ -1603,7 +1603,7 @@ static void wrap_lines_smart(int max_text_width)
|
||||
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)
|
||||
|
Loading…
Reference in New Issue
Block a user