Patch from Raphael Ackermann <raphael.ackermann@gmail.com> to fix undefined variables in HtmlDoc.py.
svn: r9644
This commit is contained in:
parent
fe61295ec5
commit
fe2bd2834e
@ -1,3 +1,6 @@
|
||||
2007-12-30 Raphael Ackermann <raphael.ackermann@gmail.com>
|
||||
* src/docgen/HtmlDoc.py: Fix undefined variables.
|
||||
|
||||
2007-12-30 Douglas S. Blank <dblank@cs.brynmawr.edu>
|
||||
* src/plugins/OnThisDay.py: i18n changes
|
||||
* src/plugins/Makefile.am: added missing files
|
||||
|
@ -374,7 +374,7 @@ class HtmlDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
|
||||
return
|
||||
|
||||
try:
|
||||
ImgManip.resize_to_jpeg(name, newfile, size, size)
|
||||
ImgManip.resize_to_jpeg(name, refname, size, size)
|
||||
except:
|
||||
return
|
||||
|
||||
@ -385,18 +385,12 @@ class HtmlDoc(BaseDoc.BaseDoc,BaseDoc.TextDoc):
|
||||
else:
|
||||
xtra = ''
|
||||
|
||||
imgsize = img.size()
|
||||
if imgsize[0] > imgsize[1]:
|
||||
size_str = "width"
|
||||
else:
|
||||
size_str = "height"
|
||||
|
||||
if self.image_dir:
|
||||
self.f.write('<img src="%s/%s" border="0" %s="%d" alt="%s"%s>\n' % \
|
||||
(self.image_dir,refname,size_str,size,alt,xtra))
|
||||
self.f.write('<img src="%s/%s" border="0" alt="%s"%s>\n' % \
|
||||
(self.image_dir, refname, alt, xtra))
|
||||
else:
|
||||
self.f.write('<img src="%s" border="0" %s="%d" alt="%s"%s>\n'
|
||||
% (refname,size_str,size,alt,xtra))
|
||||
self.f.write('<img src="%s" border="0" alt="%s"%s>\n'
|
||||
% (refname, alt, xtra))
|
||||
|
||||
def start_table(self,name,style):
|
||||
styles = self.get_style_sheet()
|
||||
|
Loading…
Reference in New Issue
Block a user