← Back to team overview

sikuli-driver team mailing list archive

[Bug 701012] [NEW] X 1.0rc1: text() does not return all intervening blanks, add's others

 

Public bug reported:

Using:

print selectRegion().text().strip()

and selecting some words side by side with intervening blanks (e.g.
button texts), you will find, that in many cases not all blanks are
returned (seems to be the first one !?).

   There are other cases, where blanks are inserted, that are not there.

e.g. this is returned for the above sentence:
Thereare other c ases. where blanks are inserted. that are not there

If the space between words is larger, there might be additional
linefeeds:

e.g. part of the top menu returns:
Blueprlnts 
 TransIal*l0ns 
 Answers

this corresponds to the bug 701005 trailing x'0A20'

** Affects: sikuli
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/701012

Title:
  X 1.0rc1: text() does not return all intervening blanks, add's others

Status in Sikuli:
  New

Bug description:
  Using:

print selectRegion().text().strip()

and selecting some words side by side with intervening blanks (e.g. button texts), you will find, that in many cases not all blanks are returned (seems to be the first one !?).

   There are other cases, where blanks are inserted, that are not there. 

e.g. this is returned for the above sentence:
Thereare other c ases. where blanks are inserted. that are not there

If the space between words is larger, there might be additional linefeeds:

e.g. part of the top menu returns:
Blueprlnts 
 TransIal*l0ns 
 Answers

this corresponds to the bug 701005 trailing x'0A20'





Follow ups

References