Use <pre> tag for formatting

This commit is contained in:
2026-07-05 18:33:20 +02:00
parent 65e5643b13
commit d4be84875e
7 changed files with 13 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ class Float
result += "&times;" if significand != '1'
result += "10<sup>% d</sup>" % exponent
end
result.html_safe
"<pre>#{result}</pre>".html_safe
end
# Assume #finite? is true.