Commits

Gael Pasgrimaud committed bdfa559

avoid rest warnings

Comments (0)

Files changed (3)

 	@echo
 	@echo "Build finished. The HTML pages are in .build/html."
 
+osx: html
+	open .build/html/index.html
+
 pickle:
 	mkdir -p .build/pickle .build/doctrees
 	$(SPHINXBUILD) -b pickle $(ALLSPHINXOPTS) .build/pickle

pyquery/README.txt

     >>> d('p').filter(lambda i: PyQuery(this).text() == 'you know Python rocks')
     [<p#hello.hello>]
 
-The opposite of filter is not_ - it returns the items that don't match the selector::
+The opposite of filter is `not_` - it returns the items that don't match the selector::
 
     >>> d('p').not_('.hello')
     [<p#test>]
     >>> d('p').eq(0)
     [<p#hello.hello>]
 
-The is_ method lets you query if any current elements match the selector::
+The `is_` method lets you query if any current elements match the selector::
 
     >>> d('p').eq(0).is_('.hello')
     True

pyquery/pyquery.py

         return self
 
     def text(self, value=no_default):
-        """Get or set the text representation of sub nodes::
+        """Get or set the text representation of sub nodes.
 
+        Get the text value::
             >>> doc = PyQuery('<div><span>toto</span><span>tata</span></div>')
             >>> print doc.text()
             toto tata
 
+        Set the text value::
+
             >>> doc.text('Youhou !')
             [<div>]
             >>> print doc
             [<div>]
             >>> print d
             <div><span>youhou</span></div>
+
         """
         assert isinstance(value, basestring)
         value = fromstring(value)