From 1ad10632c6f027f8de74bcf211b4bf872c5e2678 Mon Sep 17 00:00:00 2001 From: et0h Date: Thu, 25 Jun 2020 13:00:02 +0100 Subject: [PATCH] Fix error with double quotes in mpv chat messages (#329) --- syncplay/resources/syncplayintf.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syncplay/resources/syncplayintf.lua b/syncplay/resources/syncplayintf.lua index 677a781..b663c02 100644 --- a/syncplay/resources/syncplayintf.lua +++ b/syncplay/resources/syncplayintf.lua @@ -626,14 +626,14 @@ function wordwrapify_string(line) local nextChar = 0 local chars = 0 local maxChars = str:len() - + str = string.gsub(str, "\\\"", "\""); repeat nextChar = next_utf8(str, currentChar) if nextChar == currentChar then return newstr end local charToTest = str:sub(currentChar,nextChar-1) - if charToTest ~= "\\" and charToTest ~= "{" and charToTest ~= "}" and charToTest ~= "%" then + if charToTest ~= "{" and charToTest ~= "}" and charToTest ~= "%" then newstr = newstr .. WORDWRAPIFY_MAGICWORD .. str:sub(currentChar,nextChar-1) else newstr = newstr .. str:sub(currentChar,nextChar-1)