on master help sign in
Fix indent
3fe9e24Evan Czaplicki
libraries/Native/Text.js+9−8
@@ -91,15 +91,16 @@ Elm.Native.Text = function(elm) {
91 return "<a href='" + toText(href) + "'>" + text + "</a>";
91 return "<a href='" + toText(href) + "'>" + text + "</a>";
92 }
92 }
93
93
94− function position(pos) { return function(text) {
94+ function position(pos) {
95+ return function(text) {
95− var e = {ctor:'RawHtml',
96+ var e = {ctor:'RawHtml',
96− _0: '<div style="padding:0;margin:0;text-align:' +
97+ _0: '<div style="padding:0;margin:0;text-align:' +
97− pos + '">' + text + '</div>'
98+ pos + '">' + text + '</div>'
98− };
99+ };
99− var p = A2(htmlHeight, 0, text);
100+ var p = A2(htmlHeight, 0, text);
100− return A3(Element.newElement, p._0, p._1, e);
101+ return A3(Element.newElement, p._0, p._1, e);
102+ }
101 }
103 }
102− }
103
104
104 function asText(v) {
105 function asText(v) {
105 return position('left')(monospace(toText(show(v))));
106 return position('left')(monospace(toText(show(v))));