small correction
svn: r4934
This commit is contained in:
parent
04765281a4
commit
899599abdc
@ -208,7 +208,7 @@ class BasePage:
|
|||||||
try:
|
try:
|
||||||
newpath = self.copy_media(photo)
|
newpath = self.copy_media(photo)
|
||||||
of.write('<div class="snapshot">\n')
|
of.write('<div class="snapshot">\n')
|
||||||
of.write('<a href="%s">' % newpath)
|
of.write('<a href="%s.%s">' % (photo_handle,self.ext))
|
||||||
of.write('<img class="thumbnail" border="0" src="%s" ' % newpath)
|
of.write('<img class="thumbnail" border="0" src="%s" ' % newpath)
|
||||||
of.write('height="100"></a>')
|
of.write('height="100"></a>')
|
||||||
of.write('</div>\n')
|
of.write('</div>\n')
|
||||||
@ -473,19 +473,7 @@ class MediaPage(BasePage):
|
|||||||
of.write('</tr>\n')
|
of.write('</tr>\n')
|
||||||
of.write('</table>\n')
|
of.write('</table>\n')
|
||||||
|
|
||||||
noteobj = photo.get_note_object()
|
self.display_note_object(of, photo.get_note_object())
|
||||||
if noteobj:
|
|
||||||
of.write('<h4>%s</h4>\n' % _('Narrative'))
|
|
||||||
of.write('<hr>\n')
|
|
||||||
format = noteobj.get_format()
|
|
||||||
text = noteobj.get()
|
|
||||||
|
|
||||||
if format:
|
|
||||||
text = u"<pre>" + u"<br>".join(text.split("\n"))
|
|
||||||
else:
|
|
||||||
text = u"</p><p>".join(text.split("\n"))
|
|
||||||
of.write('<p>%s</p>\n' % text)
|
|
||||||
of.write('</div>\n')
|
|
||||||
|
|
||||||
self.display_footer(of)
|
self.display_footer(of)
|
||||||
self.close_file(of)
|
self.close_file(of)
|
||||||
|
Loading…
Reference in New Issue
Block a user