Carlos Rosas commited on
Commit
7b967ad
·
verified ·
1 Parent(s): 77ef75a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -137,8 +137,8 @@ def format_references(text):
137
  ref_id = match.group(1) # The source ID
138
  ref_text = match.group(2).strip() # The reference text
139
 
140
- # Create tooltip HTML with source ID in bold
141
- tooltip_html = f'<span class="tooltip">[{ref_number}]<span class="tooltiptext"><strong>{ref_id}</strong>: {ref_text}</span></span>'
142
  parts.append(tooltip_html)
143
 
144
  current_pos = match.end()
 
137
  ref_id = match.group(1) # The source ID
138
  ref_text = match.group(2).strip() # The reference text
139
 
140
+ # Create tooltip HTML with source ID in bold and add <br> after each reference
141
+ tooltip_html = f'<span class="tooltip">[{ref_number}]<span class="tooltiptext"><strong>{ref_id}</strong>: {ref_text}</span></span><br>'
142
  parts.append(tooltip_html)
143
 
144
  current_pos = match.end()