Closed seth-js closed 1 year ago
The line En realidad, solo una".
also wouldn't copy.
I changed the code to:
local _, quote_count = text:gsub("\"", "")
if quote_count == 1 then
text = text:gsub("\"", "“")
end
This allows both "No me quedaba tiempo y había cosas importantes que debía hacer.
and En realidad, solo una".
to be copied.
Since quote appears to be a special symbol in cmd.exe, I think it's wise to replace all occurrences of it. Feel free to create a PR with your changes though.
Thanks for approving the PR.
Anytime.
The line
"No me quedaba tiempo y había cosas importantes que debía hacer.
wouldn't copy to the clipboard.If I edit the line in the subtitle file to have a double quote at the end, the line is properly copied.
I wrote some extra code underneath
text = text:gsub("&", "^^^&"):gsub("[<>|]", "")
inwin.lua
:The first or second text replacement option fixes the problem.