mpv2oboeru

mpv helpers to create flashcards from movies and TV shows
git clone anongit@rnpnr.xyz:mpv2oboeru.git
Log | Files | Refs | Feed | README | LICENSE

Commit: d5bcc2dd5962c8d94ffbf02b8e570f73e313f131
Parent: 28b2c0516ec363ca9e5d9781c02a094322d0be61
Author: Ren Tatsumoto
Date:   Wed, 26 Aug 2020 09:31:15 +0300

remove newlines in one command

Diffstat:
Msubs2srs.lua | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/subs2srs.lua b/subs2srs.lua @@ -105,7 +105,7 @@ local function remove_text_in_parentheses(str) end local function remove_newlines(str) - return str:gsub('\r', ''):gsub('%s*\n', ' ') + return str:gsub('[\n\r]+',' ') end local function escape_apostrophes(str)