Fix issue issue with single quote interpolation

master
Laurence Warne 5 months ago
parent a9d8f5a513
commit 6593dab643

@ -45,7 +45,7 @@ def main():
pyperclip.copy(code_text) pyperclip.copy(code_text)
send_command_to_qute( send_command_to_qute(
"message-info 'copied to clipboard: {info}{suffix}'".format( "message-info 'copied to clipboard: {info}{suffix}'".format(
info=code_text.splitlines()[0], info=code_text.splitlines()[0].replace("'", "\""),
suffix="..." if len(code_text.splitlines()) > 1 else "" suffix="..." if len(code_text.splitlines()) > 1 else ""
) )
) )

Loading…
Cancel
Save