on master help sign in
Add `monospace` back to `asText`
commit16895c4384ea7b1a6584518b2fdd7fc74bf4d003 authorevancz <info@elm-lang.org> dateThu 4 Oct 2012, 12:18 (14 years ago) parent961a74d
1 file changed+1−1
core-js/Graphics/Element.js+1−1
core-js/Graphics/Element.js+1−1
@@ -234,7 +234,7 @@ ElmCode.Graphics.Element = function() {
234234 return basicNewElement(EText_39("left")(txt),p[0],p[1])
235235 }
236236 function asText(v) {
237− var txt = Value.toText(Value.show(v));
237+ var txt = monospace(Value.toText(Value.show(v)));
238238 var p = Value.getTextSize(0,0,txt);
239239 return basicNewElement(EText_39("left")(txt),p[0],p[1])
240240 }