on master help sign in
Change the type of `show`. It now produces a `String`.
commit02adbe1e40ee7ae3e5980ac03ede005c48515ecf authorevancz <info@elm-lang.org> dateThu 4 Oct 2012, 00:54 (14 years ago) parentf4344dc
2 files changed+2−4
core-js/Graphics/Element.js+1−1 core-js/Value.js+1−3
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.show(v);
237+ var txt = 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 }
core-js/Value.js+1−3
@@ -199,9 +199,7 @@ var Value = function(){
199199 }
200200 return v+"";
201201 };
202− var show = function(v) {
203− return Text.monospace(properEscape(toString(v)));
204− };
202+ var show = function(v) { return str(toString(v)); };
205203 var append = function(xs,ys) {
206204 if (typeof xs === "string" && typeof ys === "string") {
207205 return xs.concat(ys);