EasySci commited on
Commit
6889266
·
1 Parent(s): 6a34d2c

Update TLDR.py

Browse files
Files changed (1) hide show
  1. TLDR.py +7 -2
TLDR.py CHANGED
@@ -50,11 +50,16 @@ def update_mainTLDR(buttons_to_add, paper_list):
50
  for i in range(len(buttons_to_add)):
51
  category_content = []
52
  for paper in paper_list[i]:
53
- paper_link = paper.pdf_url
 
 
 
 
 
54
 
55
  paper_content = pn.Column(
56
  pn.pane.LaTeX(f"{paper.title}", styles={'font-size': '16pt', 'font-weight':'bold'}),
57
- pn.pane.HTML((f'Pdf Link: <a href="{paper.pdf_url}" target="_blank">{paper_link}</a>',f'Pdf Link: <a href="{paper.pdf_url}" target="_blank">{paper_link}</a>'), styles={'font-size': '14pt'}),
58
  pn.pane.LaTeX(paper.summary, styles={'font-size': '14pt'}),
59
  sizing_mode='stretch_width'
60
  )
 
50
  for i in range(len(buttons_to_add)):
51
  category_content = []
52
  for paper in paper_list[i]:
53
+
54
+ # Create the HTML content for both links with line breaks
55
+ html_content = (
56
+ f'Pdf Link: <a href="{paper.pdf_url}" target="_blank">{paper.pdf_url}</a><br>'
57
+ f'Another Link: <a href="{paper.pdf_url}" target="_blank">{paper.pdf_url}</a>'
58
+ )
59
 
60
  paper_content = pn.Column(
61
  pn.pane.LaTeX(f"{paper.title}", styles={'font-size': '16pt', 'font-weight':'bold'}),
62
+ pn.pane.HTML(html_content, styles={'font-size': '14pt'}),
63
  pn.pane.LaTeX(paper.summary, styles={'font-size': '14pt'}),
64
  sizing_mode='stretch_width'
65
  )