* src/plugins/WebPage.py (IndividualPage.write_normal_row): Add separators

between the references (comma and space).


svn: r2331
This commit is contained in:
Alex Roitman 2003-11-13 19:18:09 +00:00
parent 80297accda
commit 4f01f4111b
2 changed files with 13 additions and 3 deletions

View File

@ -6,6 +6,9 @@
* src/docgen/HtmlDoc.py (start_bold, end_bold): Add functions (closes
bug #841277).
* src/plugins/WebPage.py (IndividualPage.write_normal_row): Add separators
between the references (comma and space).
2003-11-12 Don Allingham <dallingham@users.sourceforge.net>
* src/FamilyView.py: Change column sizes on the FamilyView to

View File

@ -18,6 +18,8 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# $Id$
"Web Site/Generate Web Site"
#------------------------------------------------------------------------
@ -113,7 +115,7 @@ class IndividualPage:
self.doc = doc
self.use_id = id
self.id_link = idlink
self.list = map
self.list = map
self.private = private
self.alive = person.probablyAlive() and restrict
self.photos = (photos == 2) or (photos == 1 and not self.alive)
@ -146,12 +148,17 @@ class IndividualPage:
self.doc.start_paragraph("Data")
self.doc.write_text(data)
if sreflist:
first = 1
for sref in sreflist:
self.doc.start_link("#s%d" % self.scnt)
self.doc.write_raw('<SUP>')
if first:
first = 0
else:
self.doc.write_text(', ')
self.doc.start_link("#s%d" % self.scnt)
self.doc.write_text('%d' % self.scnt)
self.doc.write_raw('</SUP>')
self.doc.end_link()
self.doc.write_raw('</SUP>')
self.scnt = self.scnt + 1
self.slist.append(sref)
self.doc.end_paragraph()