arbios commited on
Commit
ce96daa
·
verified ·
1 Parent(s): 6f4c6b2

Update: forgotten/epitaph/conviction, instant demo, VoxCPM2 voices, docs, card

Browse files
Files changed (1) hide show
  1. src/mindlock/game/server.py +2 -1
src/mindlock/game/server.py CHANGED
@@ -72,7 +72,8 @@ def _doc_html(name: str, title: str) -> HTMLResponse:
72
  elif ln.strip() in ("---", "***"):
73
  out.append("<hr>")
74
  elif re.match(r"\s*[-*]\s+", ln):
75
- out.append(f"<li>{inline(re.sub(r'^\s*[-*]\s+', '', ln))}</li>")
 
76
  elif ln.strip():
77
  out.append(f"<p>{inline(ln)}</p>")
78
  if in_tbl:
 
72
  elif ln.strip() in ("---", "***"):
73
  out.append("<hr>")
74
  elif re.match(r"\s*[-*]\s+", ln):
75
+ item = re.sub(r"^\s*[-*]\s+", "", ln) # extracted: 3.11 forbids backslashes in f-string {expr}
76
+ out.append(f"<li>{inline(item)}</li>")
77
  elif ln.strip():
78
  out.append(f"<p>{inline(ln)}</p>")
79
  if in_tbl: