There was an error while loading. Please reload this page.
1 parent adb51e7 commit e807b07Copy full SHA for e807b07
1 file changed
scripts/docs-sync/transform.py
@@ -45,7 +45,7 @@ def strip_frontmatter(content: str) -> tuple[dict, str]:
45
front = content[3:end].strip()
46
for line in front.splitlines():
47
if ":" in line:
48
- k, _, v = line.partition(":")
+ k, v = line.split(":", 1)
49
fields[k.strip()] = v.strip()
50
remaining = content[end + 4:].lstrip("\n")
51
return fields, remaining
0 commit comments