diff options
Diffstat (limited to 'sub/osd_libass.c')
-rw-r--r-- | sub/osd_libass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sub/osd_libass.c b/sub/osd_libass.c index ce1a3cddb4..28a16d6204 100644 --- a/sub/osd_libass.c +++ b/sub/osd_libass.c @@ -209,7 +209,7 @@ static void mangle_ass(bstr *dst, const char *in) if (escape_ass && *in == '{') bstr_xappend(NULL, dst, bstr0("\\")); // Libass will strip leading whitespace - if (in[0] == ' ' && in != start && in[-1] == '\n') { + if (in[0] == ' ' && (in == start || in[-1] == '\n')) { bstr_xappend(NULL, dst, bstr0("\\h")); in += 1; continue; |