[check] Region.text(): adds new-line at the end of the recognized string

Bug #1828169 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

My code:
    a = find("1557282546849.png").text()
    b = "64"
    print a
    print "--"
    print b
    if a == b:
        print 'pass'
    else:
        print 'diff'

Result:
64

--
64
diff

How to do with no empty string?

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.4
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
milestone: 1.1.4 → 2.1.0
summary: - [1.1.4] Region.text(): adds new-line at the end of the recognized string
+ [check] Region.text(): adds new-line at the end of the recognized string
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.