Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

clipboard - ^v removing multiple line breaks



  • Please log in to reply
1 reply to this topic
V1P3R
  • Members
  • 28 posts
  • Last active: Jun 19 2018 12:13 PM
  • Joined: 26 Sep 2006
I think this will easily be answered, but I couldn't find it on the forums.
Could you please write me a script, that has the same function as ^c, but removes multiple occurances of line breaks in the text on the clipboard?

engunneer
  • Moderators
  • 9162 posts
  • Last active: Sep 12 2014 10:36 PM
  • Joined: 30 Aug 2005
✓  Best Answer
perhaps
loop
{
  stringreplace, clipboard, clipboard, `r, `n, all
  stringreplace, clipboard, clipboard, `n`n, `n, useerrorlevel
  if not errorlevel
   break
}