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:
|
if self.lastComic != comic:
|
||||||
self.newComic(comic)
|
self.newComic(comic)
|
||||||
url = self.getUrlFromFilename(filename)
|
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):
|
def newComic(self, comic):
|
||||||
"""Start new comic list in HTML."""
|
"""Start new comic list in HTML."""
|
||||||
|
@ -149,7 +149,7 @@ class HtmlEventHandler(EventHandler):
|
||||||
self.lastComic = comic
|
self.lastComic = comic
|
||||||
self.html.write(u''' <li>%s</li>
|
self.html.write(u''' <li>%s</li>
|
||||||
<ul>
|
<ul>
|
||||||
''' % (comic,))
|
''' % comic)
|
||||||
|
|
||||||
def end(self):
|
def end(self):
|
||||||
"""End HTML output."""
|
"""End HTML output."""
|
||||||
|
|
Loading…
Reference in a new issue