(self, separator=u"")
| 574 | string = property(getString, setString) |
| 575 | |
| 576 | def getText(self, separator=u""): |
| 577 | if not len(self.contents): |
| 578 | return u"" |
| 579 | stopNode = self._lastRecursiveChild().next |
| 580 | strings = [] |
| 581 | current = self.contents[0] |
| 582 | while current is not stopNode: |
| 583 | if isinstance(current, NavigableString): |
| 584 | strings.append(current.strip()) |
| 585 | current = current.next |
| 586 | return separator.join(strings) |
| 587 | |
| 588 | text = property(getText) |
| 589 |