Skip to content

Commit

Permalink
Merge pull request #419 from AllenInstitute/authors_links
Browse files Browse the repository at this point in the history
undo changes from commit bf53465. fa…
  • Loading branch information
rcpeene authored Jul 2, 2024
2 parents 5a72d1b + 8b13661 commit 72e272a
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions databook_utils/insert_authors_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,7 @@ def run(self):

line_block = nodes.line_block()
for property in properties[1:]:
if not property:
continue
elif property.startswith("https://") or property.startswith("http://"):
link_node = nodes.reference(text=property, refuri=property)
line_block.append(link_node)
elif "@" in property:
mailto_link = f"mailto:{property}"
email_node = nodes.reference(text=property, refuri=mailto_link)
line_block.append(email_node)
else:
if property != "":
line_block.append(nodes.line(text=property))
line_block.append(nodes.line(text=""))

Expand Down

0 comments on commit 72e272a

Please sign in to comment.