mirror of
https://github.com/mpv-player/mpv
synced 2025-02-09 08:27:18 +00:00
console: do not strip leading spaces
As suggested by TheAMM and avih.
This commit is contained in:
parent
029bb593e7
commit
1d2fcb9227
@ -136,6 +136,9 @@ function ass_escape(str)
|
||||
-- Precede newlines with a ZWNBSP to prevent ASS's weird collapsing of
|
||||
-- consecutive newlines
|
||||
str = str:gsub('\n', '\239\187\191\\N')
|
||||
-- Turn leading spaces into hard spaces to prevent ASS from stripping them
|
||||
str = str:gsub('\\N ', '\\N\\h')
|
||||
str = str:gsub('^ ', '\\h')
|
||||
return str
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user