← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #696153]: Font for select -Combo

 

Question #696153 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/696153

    Status: Open => Answered

RaiMan proposed the following answer:
ok, that is HTML behaviour: multiple blanks are collapsed to one blank.
Sorry, did not realise it.

so:
newItems = ["<html><font face='monospaced'>" + item.replace(" ", "&nbsp;")  for item in items]

the HTML-constant &nbsp; will be respected and finally result in a
blank.

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