Skip to content

Commit

Permalink
docs: Minor cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Mar 30, 2024
1 parent ce2828e commit a8ab41d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doc/lxmlhtml.txt
Expand Up @@ -433,7 +433,7 @@ You can, for instance, do:
... name='John Smith',
... phone='555-555-3949',
... interest=set(['cats', 'llamas']))
>>> print tostring(form)
>>> print(tostring(form))
<html>
<body>
<form>
Expand Down Expand Up @@ -479,6 +479,7 @@ Example:
>>> page = parse('http://tinyurl.com').getroot()
>>> page.forms[0].fields['url'] = 'http://lxml.de/'
>>> result = parse(submit_form(page.forms[0])).getroot()

>>> [a.attrib['href'] for a in result.xpath("//a[@target='_blank']")]
['http://tinyurl.com/2xae8s', 'http://preview.tinyurl.com/2xae8s']

Expand Down

0 comments on commit a8ab41d

Please sign in to comment.