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>
|
2007-03-05 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/plugins/GraphViz.py: Fix 0000942: Relationship graph doesn't show
|
* src/plugins/GraphViz.py: Fix 0000942: Relationship graph doesn't show
|
||||||
preferred name format
|
preferred name format
|
||||||
|
@ -459,7 +459,14 @@ class BasePage:
|
|||||||
if not descr:
|
if not descr:
|
||||||
descr = uri
|
descr = uri
|
||||||
of.write('<tr><td class="field">%d.</td>' % index)
|
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')
|
of.write('</td></tr>\n')
|
||||||
index = index + 1
|
index = index + 1
|
||||||
of.write('</table>\n')
|
of.write('</table>\n')
|
||||||
|
Loading…
Reference in New Issue
Block a user