← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #629256]: Deleted /n in Env.getClipboard()

 

Question #629256 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/629256

    Status: Open => Answered

RaiMan proposed the following answer:
someText = Env.getClipboard().strip()

the function strip removes whitespace characters on both ends of the
string.

there are also lstrip() (left side only - begin) and rstrip() (right
side only - end)

BTW: this is Python knowledge ;-)

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.