mirror of
https://github.com/servo/servo.git
synced 2025-06-24 17:14:33 +01:00
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
13 lines
259 B
Python
13 lines
259 B
Python
from py.xml import html
|
|
|
|
paras = "First Para", "Second para"
|
|
|
|
doc = html.html(
|
|
html.head(
|
|
html.meta(name="Content-Type", value="text/html; charset=latin1")),
|
|
html.body(
|
|
[html.p(p) for p in paras]))
|
|
|
|
print unicode(doc).encode('latin1')
|
|
|
|
|