Skip to content

Commit

Permalink
Merge pull request #420 from AllenInstitute/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
rcpeene authored Jul 2, 2024
2 parents 5a72d1b + 72e272a commit c8893f2
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 c8893f2

Please sign in to comment.