diff --git a/gramps2/src/plugins/NavWebPage.py b/gramps2/src/plugins/NavWebPage.py index 5be6cc90b..b3a91da7a 100644 --- a/gramps2/src/plugins/NavWebPage.py +++ b/gramps2/src/plugins/NavWebPage.py @@ -208,7 +208,7 @@ class BasePage: try: newpath = self.copy_media(photo) of.write('
\n') - of.write('' % newpath) + of.write('' % (photo_handle,self.ext)) of.write('') of.write('
\n') @@ -473,19 +473,7 @@ class MediaPage(BasePage): of.write('\n') of.write('\n') - noteobj = photo.get_note_object() - if noteobj: - of.write('

%s

\n' % _('Narrative')) - of.write('
\n') - format = noteobj.get_format() - text = noteobj.get() - - if format: - text = u"
" + u"
".join(text.split("\n")) - else: - text = u"

".join(text.split("\n")) - of.write('

%s

\n' % text) - of.write('\n') + self.display_note_object(of, photo.get_note_object()) self.display_footer(of) self.close_file(of)