Page 1 of 1

Paste without formatting and removing line breaks

Posted: May 4th, ’21, 05:59
by Ramakrishna
I would like to have the paste without formatting to remove line breaks also. When I copied some text from a PDF, I need to use a site https://www.textfixer.com/tools/remove-line-breaks.php to remove the line breaks. Is there any way that can be performed with fastkeys?

Re: Paste without formatting and removing line breaks

Posted: May 4th, ’21, 16:02
by Tom
This command replaces new line characters in the clipboard content with spaces:

Code: Select all

StringReplace, Clipboard, Clipboard, `r`n, %A_Space%, All 
https://www.autohotkey.com/docs/command ... eplace.htm