on master help sign in
Add `monospace` back to `asText`
16895c4evancz
core-js/Graphics/Element.js+1−1
@@ -234,7 +234,7 @@ ElmCode.Graphics.Element = function() {
234 return basicNewElement(EText_39("left")(txt),p[0],p[1])
234 return basicNewElement(EText_39("left")(txt),p[0],p[1])
235 }
235 }
236 function asText(v) {
236 function asText(v) {
237− var txt = Value.toText(Value.show(v));
237+ var txt = monospace(Value.toText(Value.show(v)));
238 var p = Value.getTextSize(0,0,txt);
238 var p = Value.getTextSize(0,0,txt);
239 return basicNewElement(EText_39("left")(txt),p[0],p[1])
239 return basicNewElement(EText_39("left")(txt),p[0],p[1])
240 }
240 }