Template
mirror of
https://github.com/MorpheApp/morphe-patches-template.git
synced 2026-11-30 23:09:34 +00:00
chore: Fix new line characters breaking readme output
This commit is contained in:
1 parent
6629ea0a1d
commit
5ca995d8e0
1 file changed
+2
-2
@@ -89,7 +89,7 @@ def patches_table(patches):
|
||||
opts_cell = "<br>".join(f"• {t}" for t in parts)
|
||||
else:
|
||||
opts_cell = ""
|
||||
desc = p.get("description") or ""
|
||||
desc = (p.get("description") or "").replace("\n", "<br>")
|
||||
rows.append(f"| [{p['name']}](#{a}) | {desc} | {opts_cell} |")
|
||||
return "\n".join(rows)
|
||||
|
||||
@@ -113,7 +113,7 @@ def versions_table(targets):
|
||||
rows = [header, sep]
|
||||
|
||||
# Optional description row — only rendered if at least one target has one
|
||||
descs = [t.get("description") or "" for t in targets]
|
||||
descs = [(t.get("description") or "").replace("\n", "<br>") for t in targets]
|
||||
if any(descs):
|
||||
rows.append("| " + " | ".join(descs) + " |")
|
||||
|
||||
|
||||
Reference in new issue
Block a user