Spaces:
Paused
Paused
Carlos Rosas
commited on
Update app.py
Browse files
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()
|