Show More
@@ -4,8 +4,6 b'' | |||
|
4 | 4 | # Imports |
|
5 | 5 | #----------------------------------------------------------------------------- |
|
6 | 6 | |
|
7 | from __future__ import with_statement | |
|
8 | ||
|
9 | 7 | # Standard library imports. |
|
10 | 8 | import os |
|
11 | 9 | import re |
@@ -179,7 +177,7 b' def export_xhtml(html, filename, image_tag=None):' | |||
|
179 | 177 | # Hack to make xhtml header -- note that we are not doing any check for |
|
180 | 178 | # valid XML. |
|
181 | 179 | offset = html.find("<html>") |
|
182 | assert(offset > -1) | |
|
180 | assert offset > -1, 'Invalid HTML string: no <html> tag.' | |
|
183 | 181 | html = ('<html xmlns="http://www.w3.org/1999/xhtml">\n'+ |
|
184 | 182 | html[offset+6:]) |
|
185 | 183 |
General Comments 0
You need to be logged in to leave comments.
Login now