Skip to content

Commit e807b07

Browse files
committed
Update transform.py
1 parent adb51e7 commit e807b07

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/docs-sync/transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def strip_frontmatter(content: str) -> tuple[dict, str]:
4545
front = content[3:end].strip()
4646
for line in front.splitlines():
4747
if ":" in line:
48-
k, _, v = line.partition(":")
48+
k, v = line.split(":", 1)
4949
fields[k.strip()] = v.strip()
5050
remaining = content[end + 4:].lstrip("\n")
5151
return fields, remaining

0 commit comments

Comments
 (0)