Skip to content

Commit 48d85f7

Browse files
committed
Change formatting a bit
1 parent 0ecef41 commit 48d85f7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

benchmarks/lowq2_reconstruction/PRfunctions.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -221,20 +221,21 @@ def create_pr_suggestion(repo_owner, repo_name, pr_number, calibration_file, xml
221221
222222
Please update the calibration URL in `{xml_file}` at line {line_number}."""
223223

224-
# Convert image file paths to data URIs and embed
224+
# Convert image file paths to data URIs and embed using HTML img tags
225+
# (GitHub sometimes has issues with markdown syntax for very long data URIs)
225226
if before_images:
226227
comment_body += "\n\n---\n\n### 📊 Before Calibration Update\n\n"
227228
for img_path in before_images:
228229
data_uri = create_data_uri_from_file(img_path)
229230
if data_uri:
230-
comment_body += f"![Before Image]({data_uri})\n\n"
231+
comment_body += f'<img src="{data_uri}" alt="Before Image" width="800" />\n\n'
231232

232233
if after_images:
233234
comment_body += "\n\n---\n\n### ✨ After Calibration Update\n\n"
234235
for img_path in after_images:
235236
data_uri = create_data_uri_from_file(img_path)
236237
if data_uri:
237-
comment_body += f"![After Image]({data_uri})\n\n"
238+
comment_body += f'<img src="{data_uri}" alt="After Image" width="800" />\n\n'
238239

239240
# Add artifacts URL link if provided
240241
if artifacts_url:

0 commit comments

Comments
 (0)