This page uses newline characters (\n) to introduce newlines in a subtitle in AviSynth:

subtitle("First line\nNext line\nLast line", ...)

I tried this code on AviSynth+ and it fails.

Newlines would be useful for credits that take multiple lines without having to repeat the settings and tune the alignment.

What is the simplest way to include newlines in subtitles?

1 Answer 1


To use newlines in the built-in Subtitle filter, you must specify the lsp (linespacing) argument:

subtitle("First line\nNext line\nLast line", lsp=12)

See the Subtitle wiki page for more info on the argument.

  • Yes, I had found the answer at VideoHelp and forgot to update it here.
    – emonigma
    Commented Sep 27, 2020 at 12:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.