fix: escape Python f-string braces in Astro template

This commit is contained in:
swaits committed 2026-04-08 14:16:53 -06:00
1 parent 1e2b34c367
commit 87acd82edb
1 file changed
+3 -2
+3 -2
View File
@@ -178,7 +178,7 @@ your code ──► client library ──┘</pre>
<p class="font-medium text-text">Listen for packets</p>
<pre
class="font-mono text-sm text-accent bg-bg-card border border-border px-4 py-3 rounded mt-2 overflow-x-auto"
>import donglora as dl
set:html={`import donglora as dl
ser = dl.connect()
dl.send(ser, "SetConfig", config=dl.DEFAULT_CONFIG)
@@ -186,7 +186,8 @@ dl.send(ser, "StartRx")
while pkt := dl.recv(ser):
p = pkt["payload"]
print(f'{pkt["rssi"]:4d}dBm {pkt["snr"]:3d}dB {p.hex()}')</pre>
print(f'{pkt["rssi"]:4d}dBm {pkt["snr"]:3d}dB {p.hex()}')`}
/>
</div>
</li>
</ol>