From 222d0fdca3e85cda91eccd4f9b31ca44c1830fc2 Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Wed, 15 Apr 2026 10:37:51 -0500 Subject: [PATCH] Fix mojibake in /path loss budget gaseous label MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HEEx attribute value syntax (label="...") treats the content as a raw attribute string, not as an Elixir string literal — so escape sequences like \u2082 are NOT interpreted and show up verbatim in the rendered page. Replace with the literal subscript-2 characters so the label reads 'Gaseous (O₂+H₂O)'. --- lib/microwaveprop_web/live/path_live.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/microwaveprop_web/live/path_live.ex b/lib/microwaveprop_web/live/path_live.ex index 4161bfce..203b4d30 100644 --- a/lib/microwaveprop_web/live/path_live.ex +++ b/lib/microwaveprop_web/live/path_live.ex @@ -678,7 +678,7 @@ defmodule MicrowavepropWeb.PathLive do
<.budget_row label="FSPL (free-space)" value={@result.loss_budget.fspl} unit="dB" /> <.budget_row - label="Gaseous (O\u2082+H\u2082O)" + label="Gaseous (O₂+H₂O)" value={Float.round(@result.loss_budget.o2 + @result.loss_budget.h2o, 2)} unit="dB" />