Embed images in html output.
This commit is contained in:
parent
88e28f3923
commit
5ccf44c36a
1 changed files with 2 additions and 2 deletions
|
@ -140,7 +140,7 @@ class HtmlEventHandler(EventHandler):
|
|||
if self.lastComic != comic:
|
||||
self.newComic(comic)
|
||||
url = self.getUrlFromFilename(filename)
|
||||
self.html.write(u' <li><a href="%s">%s</a></li>\n' % (url, os.path.basename(filename)))
|
||||
self.html.write(u'<li><img src="%s"/></li>\n' % url)
|
||||
|
||||
def newComic(self, comic):
|
||||
"""Start new comic list in HTML."""
|
||||
|
@ -149,7 +149,7 @@ class HtmlEventHandler(EventHandler):
|
|||
self.lastComic = comic
|
||||
self.html.write(u''' <li>%s</li>
|
||||
<ul>
|
||||
''' % (comic,))
|
||||
''' % comic)
|
||||
|
||||
def end(self):
|
||||
"""End HTML output."""
|
||||
|
|
Loading…
Reference in a new issue