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
5c5b032ce8
commit
c8ff7f4374
@ -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,6 +459,13 @@ class BasePage:
|
||||
if not descr:
|
||||
descr = uri
|
||||
of.write('<tr><td class="field">%d.</td>' % index)
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user