Commits

Anonymous committed a7e9677

[svn] o exclude webhelpers.feedgenerator from doctest, we don't want to maintain changes in this file from django
o fix htmlgen doctest

Comments (0)

Files changed (2)

 cover-erase=True
 cover-tests=True
 cover-package=webhelpers
+exclude=webhelpers.feedgenerator

webhelpers/htmlgen.py

 
 Examples::
 
-    >>> print html.html(
+    >>> html.html(
     ...    html.head(html.title(\"Page Title\")),
     ...    html.body(
     ...    bgcolor='#000066',
     ...    c=[html.h1('Page Title'),
     ...       html.p('Hello world!')],
     ...    ))
-    <html>
-    <head>
-    <title>Page Title</title>
-    </head>
-    <body text=\"#ffffff\" bgcolor=\"#000066\">
-    <h1>Page Title</h1><p>
-    Hello world!
-    </p>
-    </body>
-    </html>
+    '<html><head><title>Page Title</title></head><body text="#ffffff" bgcolor="#000066"><h1>Page Title</h1><p>Hello world!</p></body></html>'
     >>> html.a(href='#top', c='return to top')
     '<a href=\"#top\">return to top</a>'
-    >>> 1.4
-    1.4
 
 .. note::
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.