remove newline from copy

This commit is contained in:
UndeadMaelys 2022-03-22 19:56:03 +01:00
parent 55df86b084
commit f044bff0a9

View File

@ -56,6 +56,7 @@ function convertToHeonian(text)
local debug = false
local autocopy = false
for _, v in pairs(arg) do
if v == "-v" or v == "--verbose" then debug = true end
if v == "-c" or v == "--copy" then autocopy = true end
@ -231,7 +232,7 @@ function convertToHeonian(text)
end
-- output
if autocopy then CopyToClipboard(transcribed_text) end
if autocopy then CopyToClipboard(string.sub(transcribed_text,0,-1)) end
return transcribed_text
end
end