Added a conditional to make sure that there was a citation before creating hyper links.
svn: r18702
This commit is contained in:
parent
fcebd9085d
commit
ec0e3724c6
@ -713,12 +713,12 @@ class BasePage(object):
|
||||
|
||||
@param: citation_handle_list = list of gen/lib/Citation
|
||||
"""
|
||||
|
||||
lnk = (self.report.cur_fname, self.page_title, self.gid)
|
||||
text = ""
|
||||
for citation_handle in citation_handle_list:
|
||||
citation = self.report.database.get_citation_from_handle(
|
||||
citation_handle)
|
||||
if citation:
|
||||
|
||||
# Add the source information to src_list for use when displaying the
|
||||
# Sources page
|
||||
@ -734,8 +734,6 @@ class BasePage(object):
|
||||
index, key = self.bibli.add_reference(citation)
|
||||
id_ = "%d%s" % (index+1, key)
|
||||
text += ' [<a href="#sref%s">%s</a>]' % (id_, id_)
|
||||
|
||||
# return citation list text to its callers
|
||||
return text
|
||||
|
||||
def get_note_format(self, note, link_prefix_up):
|
||||
|
Loading…
Reference in New Issue
Block a user