src/plugins/NarrativeWeb.py: Fix 0000954: e-mail address causes Narrative Web plugin to generate bad links
svn: r8273
This commit is contained in:
parent
f64ae7ac77
commit
7f1a54dbd1
@ -1,3 +1,7 @@
|
||||
2007-03-05 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/NarrativeWeb.py: Fix 0000954: e-mail address causes Narrative
|
||||
Web plugin to generate bad links
|
||||
|
||||
2007-03-05 Brian Matherly <brian@gramps-project.org>
|
||||
* src/plugins/GraphViz.py: Fix 0000942: Relationship graph doesn't show
|
||||
preferred name format
|
||||
|
@ -459,7 +459,14 @@ class BasePage:
|
||||
if not descr:
|
||||
descr = uri
|
||||
of.write('<tr><td class="field">%d.</td>' % index)
|
||||
of.write('<td class="data"><a href="%s">%s</a>' % (uri,descr))
|
||||
if url.get_type() == RelLib.UrlType.EMAIL and not uri.startswith("mailto:"):
|
||||
of.write('<td class="data"><a href="mailto:%s">%s</a>' % (uri,descr))
|
||||
elif url.get_type() == RelLib.UrlType.WEB_HOME and not uri.startswith("http://"):
|
||||
of.write('<td class="data"><a href="http://%s">%s</a>' % (uri,descr))
|
||||
elif url.get_type() == RelLib.UrlType.WEB_FTP and not uri.startswith("ftp://"):
|
||||
of.write('<td class="data"><a href="ftp://%s">%s</a>' % (uri,descr))
|
||||
else:
|
||||
of.write('<td class="data"><a href="%s">%s</a>' % (uri,descr))
|
||||
of.write('</td></tr>\n')
|
||||
index = index + 1
|
||||
of.write('</table>\n')
|
||||
|
Loading…
Reference in New Issue
Block a user