Utensil's Zettelkasten-style forest of evergreen notes on math and tech. utensil.tngl.sh/forest/
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(render): iter 69b — re-indent python -c body inside YAML block scalar

iter 69 broke yaml parsing because the multi-line python -c body had
0-space leading lines, which left the YAML block scalar mid-stream.
Indent each python line to match the heredoc's 6-space base (sed strip
in the shim writer leaves them at correct python indent at runtime).

[AGENT: kael]

+7 -7
+7 -7
.tangled/workflows/render.yml
··· 310 310 first_byte=\$(od -An -N1 -tx1 "\$tmp" 2>/dev/null | tr -d ' \n') 311 311 if [ "\$first_byte" = "f7" ]; then 312 312 python3 -c ' 313 - import sys 314 - p = sys.argv[1] 315 - with open(p, "rb") as f: d = f.read() 316 - d2 = d.replace(b"pdf:pagesize", b"xyz:pagesize") 317 - if d2 != d: 318 - with open(p, "wb") as f: f.write(d2) 319 - ' "\$tmp" 2>/dev/null || true 313 + import sys 314 + p = sys.argv[1] 315 + with open(p, "rb") as f: d = f.read() 316 + d2 = d.replace(b"pdf:pagesize", b"xyz:pagesize") 317 + if d2 != d: 318 + with open(p, "wb") as f: f.write(d2) 319 + ' "\$tmp" 2>/dev/null || true 320 320 fi 321 321 322 322 # iter 47 — for XDV/DVI inputs dvisvgm needs dvips .pro headers