Fixed a problem with an extra line being added at the beginning of copied text.
This commit is contained in:
parent
da17b71c28
commit
e2c69e3af7
@ -754,7 +754,7 @@ def display_text(text):
|
|||||||
if event.key == pygame.K_t:
|
if event.key == pygame.K_t:
|
||||||
try:
|
try:
|
||||||
# Join with newlines to preserve blank lines in full text
|
# Join with newlines to preserve blank lines in full text
|
||||||
pyperclip.copy('\n'.join(originalText[1:-1]))
|
pyperclip.copy(''.join(originalText[2:-1]))
|
||||||
speak("Copied entire message to the clipboard.")
|
speak("Copied entire message to the clipboard.")
|
||||||
except:
|
except:
|
||||||
speak("Failed to copy the text to the clipboard.")
|
speak("Failed to copy the text to the clipboard.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user