gawel / pyquery

A jquery-like library for python
http://pyquery.rtfd.org/
Other
2.3k stars 182 forks source link

Make text representation more intuitive #100

Closed andrelaszlo closed 6 years ago

andrelaszlo commented 9 years ago

As discussed in issue #99, the text() method now renders whitespace more like a browser and uses the original whitespace of the html but strips consecutive whitespace.

An exception is made for query results since they will never have any separating whitespace. In this case a space will be added between each element to improve readability.

gawel commented 6 years ago

.text() has been refactored. See #180 Thanks for the effort anyway.