remove newline from copy
This commit is contained in:
parent
55df86b084
commit
f044bff0a9
5
R2H2.lua
5
R2H2.lua
@ -55,7 +55,8 @@ function convertToHeonian(text)
|
|||||||
local transcribed_text = ""
|
local transcribed_text = ""
|
||||||
|
|
||||||
local debug = false
|
local debug = false
|
||||||
local autocopy = false
|
local autocopy = false
|
||||||
|
|
||||||
for _, v in pairs(arg) do
|
for _, v in pairs(arg) do
|
||||||
if v == "-v" or v == "--verbose" then debug = true end
|
if v == "-v" or v == "--verbose" then debug = true end
|
||||||
if v == "-c" or v == "--copy" then autocopy = true end
|
if v == "-c" or v == "--copy" then autocopy = true end
|
||||||
@ -231,7 +232,7 @@ function convertToHeonian(text)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- output
|
-- output
|
||||||
if autocopy then CopyToClipboard(transcribed_text) end
|
if autocopy then CopyToClipboard(string.sub(transcribed_text,0,-1)) end
|
||||||
return transcribed_text
|
return transcribed_text
|
||||||
end
|
end
|
||||||
end
|
end
|
Loading…
Reference in New Issue
Block a user