summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2025-03-19 14:52:53 -0600
committermo khan <mo@mokhan.ca>2025-03-19 14:52:53 -0600
commit8f676777db5a16ff20315def95091cc2100bac56 (patch)
tree53367239cf8166e08c156fb2d83b6ce841abc8e2
parent4e0b3504dddc7396cb1f24284bd5c39a1cea06c0 (diff)
fix: restore erb trim_mode option
-rwxr-xr-xbin/ui3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/ui b/bin/ui
index 44efc67..115fae6 100755
--- a/bin/ui
+++ b/bin/ui
@@ -229,8 +229,7 @@ class UI
</body>
</html>
ERB
- erb = ERB.new(template)
- html = erb.result(binding)
+ html = ERB.new(template, trim_mode: '-').result(binding)
[200, { 'Content-Type' => "text/html" }, [html]]
end
end